public void UpdateInboundCounter(Server server, long n)
 {
     Interlocked.Add(ref _inboundCounter, n);
     if (_config.availabilityStatistics)
     {
         availabilityStatistics.UpdateInboundCounter(server, n);
     }
 }
Beispiel #2
0
 public void UpdateInboundCounter(Server server, long n)
 {
     Interlocked.Add(ref inboundCounter, n);
     if (_config.availabilityStatistics)
     {
         new Task(() => availabilityStatistics.UpdateInboundCounter(server, n)).Start();
     }
 }
Beispiel #3
0
 public void UpdateInboundCounter(object sender, SSTransmitEventArgs args)
 {
     GetCurrentStrategy()?.UpdateLastRead(args.server);
     Interlocked.Add(ref _inboundCounter, args.length);
     if (_config.availabilityStatistics)
     {
         availabilityStatistics.UpdateInboundCounter(args.server, args.length);
     }
 }