public void UpdateOutboundCounter(Server server, long n) { Interlocked.Add(ref _outboundCounter, n); if (_config.availabilityStatistics) { availabilityStatistics.UpdateOutboundCounter(server, n); } }
public void UpdateOutboundCounter(Server server, long n) { Interlocked.Add(ref outboundCounter, n); if (_config.availabilityStatistics) { new Task(() => availabilityStatistics.UpdateOutboundCounter(server, n)).Start(); } }
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); } }