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