/////////////////////////////////////////////////////////////////////////////
 void WriteErrorMessage(HttpContext context)
 {
     context.Response.Write(AuthFailedErrorFormatter.GetErrorText());
     // In Integrated pipeline, ask for handler headers to be generated.  This would be unnecessary
     // if we just threw an access denied exception, and used the standard error mechanism
     context.Response.GenerateResponseHeadersForHandler();
 }
 internal static string GetErrorText()
 {
     if (_strErrorText == null)
     {
         lock (_syncObject)
         {
             if (_strErrorText == null)
             {
                 _strErrorText = new AuthFailedErrorFormatter().GetErrorMessage();
             }
         }
     }
     return _strErrorText;
 }
 private void WriteErrorMessage(HttpContext context)
 {
     context.Response.Write(AuthFailedErrorFormatter.GetErrorText());
     context.Response.GenerateResponseHeadersForHandler();
 }
Пример #4
0
 /////////////////////////////////////////////////////////////////////////////
 void WriteErrorMessage(HttpContext context)
 {
     context.Response.Write(AuthFailedErrorFormatter.GetErrorText());
 }