/// <summary>
 /// <see cref="Feature.Setup"/>
 /// </summary>
 protected internal override void Setup(FeatureConfigurationContext context)
 {
     var criticalTimeCounter = PerformanceCounterHelper.InstantiatePerformanceCounter("Critical Time", context.Settings.EndpointName());
     var criticalTimeCalculator = new CriticalTimeCalculator(criticalTimeCounter);
     context.Container.RegisterSingleton(criticalTimeCalculator);
     context.Pipeline.Register<CriticalTimeBehavior.Registration>();
 }
 static void SetupCriticalTimePerformanceCounter(FeatureConfigurationContext context)
 {
     var criticalTimeCounter = PerformanceCounterHelper.InstantiateCounter("Critical Time", context.Settings.EndpointName());
     var criticalTimeCalculator = new CriticalTimeCalculator(criticalTimeCounter);
     context.Container.RegisterSingleton(criticalTimeCalculator);
 }