public static void EnableWindowsPerformanceCounters(this IBusFactoryConfigurator configurator) { if (configurator == null) throw new ArgumentNullException(nameof(configurator)); var specification = new PerformanceCounterBusFactorySpecification(new WindowsCounterFactory()); configurator.AddBusFactorySpecification(specification); }
public static void EnableStatsdPerformanceCounters(this IBusFactoryConfigurator configurator, Action<StatsDConfiguration> action) { var statsDConfiguration = StatsDConfiguration.Defaults(); action(statsDConfiguration); if (configurator == null) throw new ArgumentNullException(nameof(configurator)); var specification = new PerformanceCounterBusFactorySpecification(new StatsDCounterFactory(statsDConfiguration)); configurator.AddBusFactorySpecification(specification); }
public static void EnableWindowsPerformanceCounters(this IBusFactoryConfigurator configurator) { if (configurator == null) { throw new ArgumentNullException(nameof(configurator)); } var specification = new PerformanceCounterBusFactorySpecification(new WindowsCounterFactory()); configurator.AddBusFactorySpecification(specification); }
public static void EnableStatsdPerformanceCounters(this IBusFactoryConfigurator configurator, Action <StatsDConfiguration> action) { var statsDConfiguration = StatsDConfiguration.Defaults(); action(statsDConfiguration); if (configurator == null) { throw new ArgumentNullException(nameof(configurator)); } var specification = new PerformanceCounterBusFactorySpecification(new StatsDCounterFactory(statsDConfiguration)); configurator.AddBusFactorySpecification(specification); }