For the complete documentation index, see llms.txt. This section of documentation is indexed by https://docs.particular.net/nservicebus/llms.txt. Here is the markdown version of this page. Markdown versions of documentation pages are available by appending .md to the page URL. Directory URLs use index.md.

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.

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