/// <summary> /// Occurs as the first event in the HTTP pipeline chain of execution when ASP.NET responds to a request. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void ApplicationBeginRequest(object sender, EventArgs e) { HttpApplication httpApplication = (HttpApplication)sender; HttpRequest httpRequest = httpApplication.Request; for (int i = 0; i < _handlers.Count; i++) { _handlers[i].BeginRequest(httpApplication); } if (_serviceBrowserRenderer != null) { if (_serviceBrowserRenderer.CanRender(httpRequest)) { CompressContent(httpApplication); FluorineWebContext.Initialize(); httpApplication.Response.Clear(); //httpApplication.Response.ClearHeaders(); _serviceBrowserRenderer.Render(httpApplication); httpApplication.CompleteRequest(); return; } } }
private void application_BeginRequest(object sender, EventArgs e) { HttpApplication httpApplication = (HttpApplication)sender; HttpRequest httpRequest = httpApplication.Request; if ((serviceBrowserRenderer != null) && serviceBrowserRenderer.CanRender(httpRequest)) { this.CompressContent(httpApplication); FluorineWebContext.Initialize(); httpApplication.Response.Clear(); serviceBrowserRenderer.Render(httpApplication); httpApplication.CompleteRequest(); } else if (httpApplication.Request.ContentType == "application/x-amf") { httpApplication.Context.SkipAuthorization = true; } }