// Token: 0x060015FC RID: 5628 RVA: 0x0005209C File Offset: 0x0005029C
 public LoggingModule(TaskContext context)
 {
     this.context = context;
     if (!ActivityContext.IsStarted)
     {
         ActivityContext.ClearThreadScope();
         this.activityScope = ActivityContext.Start(this);
         if (HttpContext.Current != null)
         {
             this.activityScope.UpdateFromMessage(HttpContext.Current.Request);
             this.activityScope.SerializeTo(HttpContext.Current.Response);
         }
     }
     InitializeLoggerSettingsHelper.InitLoggerSettings();
     this.StartLogging();
 }
Beispiel #2
0
 // Token: 0x060012DF RID: 4831 RVA: 0x0003D670 File Offset: 0x0003B870
 internal static bool StartLogging(string funcName, out bool latencyTrackerStartedByMe)
 {
     AuthZLogger.SafeAppendColumn(RpsCommonMetadata.GenericLatency, funcName, DateTime.UtcNow.ToString());
     latencyTrackerStartedByMe = false;
     if (AuthZLogHelper.latencyTracker == null)
     {
         Diagnostics.ExecuteAndLog("AuthZLogHelper.StartLatencyTracker", false, null, Constants.CoreEventLogger, Microsoft.Exchange.Configuration.Core.EventLog.TaskEventLogConstants.Tuple_NonCrashingException, Microsoft.Exchange.Diagnostics.Components.Configuration.Core.ExTraceGlobals.InstrumentationTracer, null, delegate(Exception ex)
         {
             AuthZLogHelper.LogException(ex, "AuthZLogHelper.StartLatencyTracker", false);
         }, delegate()
         {
             AuthZLogHelper.StartLatencyTracker(funcName);
         });
         latencyTrackerStartedByMe = (AuthZLogHelper.latencyTracker != null);
     }
     if (AuthZLogger.LoggerNotDisposed)
     {
         return(false);
     }
     InitializeLoggerSettingsHelper.InitLoggerSettings();
     AuthZLogger.InitializeRequestLogger();
     AuthZLogger.SafeSetLogger(RpsAuthZMetadata.Function, funcName);
     return(true);
 }