// Token: 0x060012E1 RID: 4833 RVA: 0x0003D75C File Offset: 0x0003B95C internal static void EndLogging(bool shouldCommit) { Microsoft.Exchange.Diagnostics.Components.Configuration.Core.ExTraceGlobals.InstrumentationTracer.TraceDebug(0L, "[AuthZLogHelper.EndLogging] End logging."); try { if (AuthZLogHelper.latencyTracker != null) { long num = Diagnostics.ExecuteAndLog <long>("AuthZLogHelper.StopLatencyTracker", 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.StopLatencyTracker", false); }, -1L, new Func <long>(AuthZLogHelper.StopLatencyTracker)); AuthZLogger.SafeSetLogger(ConfigurationCoreMetadata.TotalTime, num); AuthZLogHelper.latencyTracker.PushLatencyDetailsToLog(AuthZLogHelper.funcNameToLogMetadataDic, new Action <Enum, double>(AuthZLogger.UpdateLatency), delegate(string funcName, string totalLatency) { AuthZLogger.SafeAppendColumn(RpsCommonMetadata.GenericLatency, funcName, totalLatency); }); } else { AuthZLogger.SafeAppendColumn(RpsCommonMetadata.GenericLatency, "LatencyMissed", "AuthZLogHelper.latencyTracker is null"); } } finally { try { if (shouldCommit) { AuthZLogger.AsyncCommit(true); } } finally { AuthZLogHelper.latencyTracker = null; } } }