Ejemplo n.º 1
0
            /// <summary>
            /// Handles the BeginRequest event for the incoming requests.
            /// </summary>
            /// <param name="sender">The source of the event.</param>
            /// <param name="e">The <see cref="EventArgs" />The event data.</param>
            protected void Application_BeginRequest(object sender, EventArgs e)
            {
                string environmentId = InstrumentationInitializer.EnvironmentConfig != null ? InstrumentationInitializer.EnvironmentConfig.EnvironmentId : string.Empty;

                RetailLogger.Log.SetSessionInfo(new SessionInfo(Guid.NewGuid(), environmentId));
                CorsSupport.HandlePreflightRequest();
            }
 protected void Application_BeginRequest(object sender, EventArgs e)
 {
     CorsSupport.HandlePreflightRequest(HttpContext.Current);
 }