public void Concat(IUsageMetrics metric) { ErrorCount += metric.ErrorCount; BytesProcessed += metric.BytesProcessed; WarningCount += metric.WarningCount; ProcessingMS += metric.ProcessingMS; DeadLetterCount += metric.DeadLetterCount; ActiveCount += metric.ActiveCount; }
public AsyncCoupler(ILogger logger, IUsageMetrics usageMetrics) { Logger = logger ?? throw new ArgumentNullException(nameof(logger)); UsageMetrics = usageMetrics ?? throw new ArgumentNullException(nameof(usageMetrics)); }