// Token: 0x06000151 RID: 337 RVA: 0x0000A1A0 File Offset: 0x000083A0
 internal static void UpdateCookie(HttpContext httpContext, string action, DateTime checkPointDateTime)
 {
     try
     {
         if (LogonLatencyLogger.loggingEnabled)
         {
             DateTime utcNow  = DateTime.UtcNow;
             long     latency = Convert.ToInt64((utcNow - checkPointDateTime).TotalMilliseconds);
             if (action.Equals("ADL"))
             {
                 LogonLatencyLogger.AddLatencyHeader(httpContext, "X-AuthDiagInfoLdapLatency", latency);
             }
             else
             {
                 LogonLatencyLogger.AddLatencyHeader(httpContext, "X-AuthDiagInfoMservLookupLatency", latency);
             }
             string text        = string.Empty;
             string cookieValue = string.Empty;
             if (httpContext.Request.Cookies["logonLatency"] != null && httpContext.Request.Cookies["logonLatency"].Value != null)
             {
                 text = LogonLatencyLogger.GetLatestCookieValue(httpContext);
                 if (action.Equals("ADL") || action.Equals("MSERVL"))
                 {
                     int num = 1;
                     if (!string.IsNullOrEmpty(text))
                     {
                         while (text.Contains(action + num))
                         {
                             num++;
                         }
                     }
                     action += num;
                 }
                 cookieValue = string.Format("{0}&{1}={2}", text, action, latency.ToString());
                 LogonLatencyLogger.SetCookie(httpContext, "logonLatency", cookieValue, Utilities.GetOutlookDotComDomain(httpContext.Request.GetRequestUrlEvenIfProxied().Host));
             }
             else
             {
                 string arg = "adlkupltncy";
                 if (action.Equals("MSERVL"))
                 {
                     arg = "mservlkupltncy";
                 }
                 httpContext.Response.AppendToLog(string.Format("&{0}={1}", arg, latency.ToString()));
             }
         }
     }
     catch (Exception ex)
     {
         ExTraceGlobals.LiveIdAuthenticationModuleTracer.TraceError <string, string>(0L, "Unexpected exception while updating logon latency cookie. Exception message: {0}. Stack trace: {1}", ex.Message, ex.StackTrace);
     }
 }
 // Token: 0x06000150 RID: 336 RVA: 0x0000A118 File Offset: 0x00008318
 internal static void CreateCookie(HttpContext httpContext, string logonStep)
 {
     try
     {
         if (LogonLatencyLogger.loggingEnabled)
         {
             LogonLatencyLogger.SetCookie(httpContext, "logonLatency", string.Format("{0}={1}", logonStep, DateTime.UtcNow.Ticks.ToString()), Utilities.GetOutlookDotComDomain(httpContext.Request.GetRequestUrlEvenIfProxied().Host));
         }
     }
     catch (Exception ex)
     {
         ExTraceGlobals.LiveIdAuthenticationModuleTracer.TraceError <string, string>(0L, "Unexpected exception while creating logon latency cookie. Exception message: {0}. Stack trace: {1}", ex.Message, ex.StackTrace);
     }
 }
 // Token: 0x06000152 RID: 338 RVA: 0x0000A34C File Offset: 0x0000854C
 internal static void UpdateCookie(HttpContext httpContext, string logonStep)
 {
     try
     {
         if (LogonLatencyLogger.loggingEnabled)
         {
             string arg         = string.Empty;
             string cookieValue = string.Empty;
             if (httpContext.Request.Cookies["logonLatency"] != null && httpContext.Request.Cookies["logonLatency"].Value != null)
             {
                 arg         = LogonLatencyLogger.GetLatestCookieValue(httpContext);
                 cookieValue = string.Format("{0}&{1}={2}", arg, logonStep, DateTime.UtcNow.Ticks.ToString());
                 LogonLatencyLogger.SetCookie(httpContext, "logonLatency", cookieValue, Utilities.GetOutlookDotComDomain(httpContext.Request.GetRequestUrlEvenIfProxied().Host));
             }
         }
     }
     catch (Exception ex)
     {
         ExTraceGlobals.LiveIdAuthenticationModuleTracer.TraceError <string, string>(0L, "Unexpected exception while updating logon latency cookie. Exception message: {0}. Stack trace: {1}", ex.Message, ex.StackTrace);
     }
 }