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