This is part of the NServiceBus Upgrade Guide from Version 6 to 7, which also includes the following individual upgrade guides for specific components:
- Migrating Msmq subscription messages
- Azure Service Bus Transport (Legacy) Upgrade Version 7 to 8
- RabbitMQ Transport Upgrade Version 4 to 5
- SQL Server Transport Upgrade Version 3 to 4
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));