Beispiel #1
0
        private void Application_EndRequest(object sender, EventArgs e)
        {
            RequestDetailsLogger requestDetailsLogger = RequestDetailsLoggerBase <RequestDetailsLogger> .Current;

            if (requestDetailsLogger != null && !requestDetailsLogger.IsDisposed)
            {
                HttpApplication httpApplication = (HttpApplication)sender;
                HttpContext     context         = httpApplication.Context;
                string          text            = context.Items["AutodiscoverRedirectLog"] as string;
                if (text != null)
                {
                    requestDetailsLogger.Set(AutoDiscoverMetadata.AutodiscoverRedirect, text);
                }
                string text2 = context.Items["LiveIdBasicAuthResult"] as string;
                if (!string.IsNullOrEmpty(text2) && !string.Equals(text2, LiveIdAuthResult.Success.ToString(), StringComparison.OrdinalIgnoreCase))
                {
                    string text3 = context.Items["LiveIdBasicLog"] as string;
                    if (!string.IsNullOrEmpty(text3))
                    {
                        int num = text3.IndexOf(" ---> ");
                        if (num != -1)
                        {
                            text3 = text3.Substring(0, num);
                        }
                    }
                    context.Response.Headers["X-AutoDiscovery-Error"] = string.Format("LiveIdBasicAuth:{0}:{1};", text2, text3);
                }
                requestDetailsLogger.AsyncCommit();
            }
        }
Beispiel #2
0
 // Token: 0x0600025E RID: 606 RVA: 0x00010098 File Offset: 0x0000E298
 private void Application_End(object sender, EventArgs e)
 {
     try
     {
         ExchangeDiagnosticsHelper.UnRegisterDiagnosticsComponents();
     }
     finally
     {
         RequestDetailsLogger.FlushQueuedFileWrites();
         Microsoft.Exchange.Diagnostics.Components.Autodiscover.ExTraceGlobals.FrameworkTracer.TraceDebug((long)this.GetHashCode(), "[Application_End()] 'Autodiscover service stopped'");
         Common.EventLog.LogEvent(AutodiscoverEventLogConstants.Tuple_InfoWebApplicationStop, Common.PeriodicKey, new object[]
         {
             "Autodiscover service stopped"
         });
     }
 }