protected internal override void Setup(FeatureConfigurationContext context) { var logicalAddress = context.Settings.LogicalAddress(); var performanceDiagnosticsBehavior = new ReceivePerformanceDiagnosticsBehavior(logicalAddress.EndpointInstance.Endpoint); context.Pipeline.Register(performanceDiagnosticsBehavior, "Provides various performance counters for receive statistics"); context.Pipeline.Register("ProcessingStatistics", new ProcessingStatisticsBehavior(), "Collects timing for ProcessingStarted and adds the state to determine ProcessingEnded"); context.Pipeline.Register("AuditProcessingStatistics", new AuditProcessingStatisticsBehavior(), "Add ProcessingStarted and ProcessingEnded headers"); context.RegisterStartupTask(new WarmupCooldownTask(performanceDiagnosticsBehavior)); }
public WarmupCooldownTask(ReceivePerformanceDiagnosticsBehavior behavior) { this.behavior = behavior; }