private void SetResponseHeaders(RequestDetailsLogger logger, HttpContext httpContext) { if (logger != null && !logger.IsDisposed && logger.ShouldSendDebugResponseHeaders()) { ServiceCommonMetadataPublisher.PublishMetadata(); if (httpContext != null) { logger.PushDebugInfoToResponseHeaders(httpContext); } } }
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(); } }
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(); } }