BlogEngine.Core.Web.HttpModules.CompressionModule.context_Error C# (CSharp) 메소드

context_Error() 개인적인 메소드

private context_Error ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void
        void context_Error(object sender, EventArgs e)
        {
            HttpContext context = ((HttpApplication)sender).Context;
            Exception ex = context.Server.GetLastError();

            // If this CompressionModule will be compressing the response and an unhandled exception
            // has occurred, remove the WebResourceFilter as that will cause garbage characters to
            // be sent to the browser instead of a yellow screen of death.
            if (WillCompressResponse)
            {
                context.Response.Filter = null;
                WillCompressResponse = false;
            }
        }