public void OnForwarderMetrics(ForwarderMetrics oldMetrics, ForwarderMetrics newMetrics) { var elapsed = newMetrics.Timestamp - oldMetrics.Timestamp; var newRequests = newMetrics.RequestsStarted - oldMetrics.RequestsStarted; Console.Title = $"Proxied {newMetrics.RequestsStarted} requests ({newRequests} in the last {(int)elapsed.TotalMilliseconds} ms)"; }
public void OnForwarderMetrics(ForwarderMetrics oldMetrics, ForwarderMetrics newMetrics) { _requestsStarted.IncTo(newMetrics.RequestsStarted); _requestsFailed.IncTo(newMetrics.RequestsFailed); _CurrentRequests.Set(newMetrics.CurrentRequests); }