Esempio n. 1
0
        // Token: 0x06000731 RID: 1841 RVA: 0x0002A46C File Offset: 0x0002866C
        protected override void OnPostAuthorizeInternal(HttpApplication httpApplication)
        {
            if (ExTraceGlobals.HttpModuleTracer.IsTraceEnabled(7))
            {
                ExTraceGlobals.HttpModuleTracer.TraceFunction((long)this.GetHashCode(), "[RpsHttpProxyModule::OnPostAuthorizeInternal] Enter");
            }
            RequestDetailsLogger current = RequestDetailsLoggerBase <RequestDetailsLogger> .GetCurrent(httpApplication.Context);

            if (current != null)
            {
                Dictionary <Enum, string> authValues = ServiceCommonMetadataPublisher.GetAuthValues(new HttpContextWrapper(httpApplication.Context), false);
                if (authValues.ContainsKey(8))
                {
                    RequestMonitor.Instance.Log(current.ActivityId, 3, authValues[8]);
                }
                if (authValues.ContainsKey(5))
                {
                    RequestMonitor.Instance.Log(current.ActivityId, 4, authValues[5]);
                }
            }
            base.OnPostAuthorizeInternal(httpApplication);
            if (ExTraceGlobals.HttpModuleTracer.IsTraceEnabled(7))
            {
                ExTraceGlobals.HttpModuleTracer.TraceFunction((long)this.GetHashCode(), "[RpsHttpProxyModule::OnPostAuthorizeInternal] Exit");
            }
        }
Esempio n. 2
0
 private void SetResponseHeaders(RequestDetailsLogger logger, HttpContext httpContext)
 {
     if (logger != null && !logger.IsDisposed && logger.ShouldSendDebugResponseHeaders())
     {
         ServiceCommonMetadataPublisher.PublishMetadata();
         if (httpContext != null)
         {
             logger.PushDebugInfoToResponseHeaders(httpContext);
         }
     }
 }
Esempio n. 3
0
 internal void AsyncCommit(bool forceSync)
 {
     if (!base.IsDisposed)
     {
         ServiceCommonMetadataPublisher.PublishMetadata();
         if (string.IsNullOrEmpty(this.Get(ServiceCommonMetadata.AuthenticatedUser)) && string.Compare(this.Get(ServiceCommonMetadata.HttpStatus), "401") == 0 && string.Equals(this.Get(ActivityStandardMetadata.AuthenticationType), "Anonymous", StringComparison.OrdinalIgnoreCase))
         {
             base.ExcludeLogEntry();
         }
         if (!forceSync)
         {
             RequestDetailsLogger.fileIoQueue.Enqueue(this);
             RequestDetailsLogger.workerSignal.Set();
             return;
         }
         this.Dispose();
     }
 }
Esempio n. 4
0
        internal void AsyncCommit(bool forceSync)
        {
            if (!base.IsDisposed)
            {
                ExTraceGlobals.InstrumentationTracer.TraceDebug <ConfigurationCoreLogger <T>, bool>((long)this.GetHashCode(), "Dispose {0} logger. forceSync = {1}.", this, forceSync);
                ServiceCommonMetadataPublisher.PublishMetadata();
                if (!forceSync)
                {
                    ConfigurationCoreLogger <T> .fileIoQueue.Enqueue(this);

                    ConfigurationCoreLogger <T> .workerSignal.Set();
                }
                else
                {
                    this.Dispose();
                }
                RequestDetailsLoggerBase <T> .SetCurrent(HttpContext.Current, default(T));
            }
        }
 public void AsyncCommit()
 {
     if (!base.IsDisposed)
     {
         ServiceCommonMetadataPublisher.PublishMetadata();
         BudgetMetadataPublisher.PublishMetadata();
         string value  = this.Get(ServiceCommonMetadata.LiveIdBasicLog);
         string value2 = this.Get(ServiceCommonMetadata.LiveIdBasicError);
         string value3 = this.Get(ServiceCommonMetadata.LiveIdNegotiateError);
         if (string.Equals(this.Get(ServiceCommonMetadata.HttpStatus), "401", StringComparison.OrdinalIgnoreCase) && string.IsNullOrEmpty(this.Get(ServiceCommonMetadata.AuthenticatedUser)) && string.Equals(this.Get(ActivityStandardMetadata.AuthenticationType), "Anonymous", StringComparison.OrdinalIgnoreCase))
         {
             base.ExcludeLogEntry();
         }
         else
         {
             if (!string.IsNullOrEmpty(value))
             {
                 this.AppendAuthError("LiveIdBasicLog", value);
             }
             if (!string.IsNullOrEmpty(value2))
             {
                 this.AppendAuthError("LiveIdBasicError", value2);
             }
             if (!string.IsNullOrEmpty(value3))
             {
                 this.AppendAuthError("LiveIdNegotiateError", value3);
             }
             if (string.Compare(this.Get(ServiceCommonMetadata.HttpStatus), "200", StringComparison.OrdinalIgnoreCase) == 0 && string.IsNullOrEmpty(this.Get(AutoDiscoverMetadata.RedirectType)))
             {
                 this.SetRedirectionType(RedirectionType.FullResponse);
             }
         }
         RequestDetailsLogger.fileIoQueue.Enqueue(this);
         RequestDetailsLogger.workerSignal.Set();
     }
 }