protected override void ProcessRecord() { if (ShouldProcess(Environment.MachineName)) { PerformanceCounterSetup.SetupCounters(String.Format("Rabbit.{0}", queueName)); } }
protected override void ProcessRecord() { var countersAreGood = PerformanceCounterSetup.CheckCounters(String.Format("Rabbit.{0}", queueName)); WriteVerbose(countersAreGood ? "NServiceBus Performance Counters are setup and ready for use with NServiceBus." : "NServiceBus Performance Counters are not properly configured."); WriteObject(countersAreGood); }