Beispiel #1
0
 // 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;
 }
Beispiel #2
0
 // 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;
 }