Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule.Init C# (CSharp) Method

Init() private method

private Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
return void
        public void Init(HttpApplication context)
        {
            if (this.isEnabled)
            {
                try
                {
                    context.BeginRequest += this.OnBeginRequest;
                    context.EndRequest += this.OnEndRequest;
                }
                catch (Exception exc)
                {
                    this.isEnabled = false;
                    WebEventSource.Log.WebModuleInitializationExceptionEvent(exc.ToInvariantString());
                }
            }
        }