Upgrade PerformanceCounters Version 1 to 2

UpdateCounterEvery

PerformanceCounters are now updated directly, with no intermediate stores. Therefore, the reporting period is no longer needed and the call to UpdateCounterEvery can be removed.

1.x NServiceBus.Metrics.PerformanceCounters
var performanceCounters = endpointConfiguration.EnableWindowsPerformanceCounters();
// the below line can be removed
performanceCounters.UpdateCounterEvery(TimeSpan.FromSeconds(2));

Last modified