The Windows Performance Counters feature is in the process of being removed from the NServiceBus NuGet package. It is now available as a separate NuGet package, NServiceBus.Metrics.PerformanceCounters. The new package should be used to write to performance counters when using NServiceBus Versions 6.2 and above.
The API was also modified.
The NServiceBus Performance Counter APIs have been marked as obsolete and have one-for-one equivalents in the NServiceBus.Metrics.PerformanceCounters package.
var performanceCounters = endpointConfiguration.EnableWindowsPerformanceCounters();
var performanceCounters = endpointConfiguration.EnableWindowsPerformanceCounters(); performanceCounters.EnableSLAPerformanceCounters(TimeSpan.FromMinutes(3));
The NServiceBus.Metrics.PerformanceCounters package is fully compatible with endpoints that use NServiceBus package's Performance Counters functionality.