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)";
        }
Esempio n. 2
0
 public void OnForwarderMetrics(ForwarderMetrics oldMetrics, ForwarderMetrics newMetrics)
 {
     _requestsStarted.IncTo(newMetrics.RequestsStarted);
     _requestsFailed.IncTo(newMetrics.RequestsFailed);
     _CurrentRequests.Set(newMetrics.CurrentRequests);
 }