// Token: 0x0600121B RID: 4635 RVA: 0x0001E1F0 File Offset: 0x0001C3F0 public static void RecordWebServiceBegin(string method, int bytes) { WebServiceStatistics.Statistics statistics = WebServiceStatistics.GetStatistics(method); statistics.Counter++; statistics.OutgoingBytes += bytes; WebServiceStatistics.TotalBytesOut += (long)bytes; statistics.LastCall = DateTime.UtcNow; }
// Token: 0x0600121D RID: 4637 RVA: 0x0001E2A0 File Offset: 0x0001C4A0 private static WebServiceStatistics.Statistics GetStatistics(string method) { WebServiceStatistics.Statistics statistics; if (!WebServiceStatistics.Data.TryGetValue(method, out statistics)) { statistics = new WebServiceStatistics.Statistics(); WebServiceStatistics.Data[method] = statistics; } return(statistics); }
// Token: 0x0600121C RID: 4636 RVA: 0x0001E238 File Offset: 0x0001C438 public static void RecordWebServiceEnd(string method, int bytes, bool success) { WebServiceStatistics.Statistics statistics = WebServiceStatistics.GetStatistics(method); statistics.IncomingBytes += bytes; WebServiceStatistics.TotalBytesIn += (long)bytes; if (!success) { statistics.FailCounter++; } statistics.Time = (float)DateTime.UtcNow.Subtract(statistics.LastCall).TotalSeconds; }