public override void Configure(IRequestPipelineBuilder builder, IServiceProvider serviceProvider)
 {
     builder.AddFilterSelector(new RequestFilterSelector());
     builder.AddHandlerSelector(new RequestHandlerSelector());
     builder.UseHandlerExecutionStrategy(new RequestHandlerExecutionStrategy {
         Action = serviceProvider.GetRequiredService <Action <string> >()
     });
 }
        public override void Configure(IRequestPipelineBuilder builder, IServiceProvider serviceProvider)
        {
            var experimentInfo = new RequestHandlerExperimentInfo
            {
                BaselineHandlerType = _baselineHandlerType,
                ExperimentName      = ExperimentName,
                Tags = Tags
            };

            builder.UseHandlerExecutionStrategy(new RequestHandlerExperimentExecutionStrategy(experimentInfo));
        }
        public override void Configure(IRequestPipelineBuilder builder, IServiceProvider serviceProvider)
        {
            var toggleInfo = new RequestHandlerToggleInfo
            {
                Tags = Tags,
                ToggleDisabledHandlerType = ToggleDisabledHandlerType,
                ToggleEnabledHandlerType  = _toggleEnabledHandlerType,
                ToggleName = ToggleName
            };

            builder.AddHandlerSelector(new RequestHandlerToggleHandlerSelector(toggleInfo));
        }
예제 #4
0
 public override void Configure(IRequestPipelineBuilder builder, IServiceProvider serviceProvider)
 {
     builder.UseHandlerExecutionStrategy(new WhenAnyRequestHandlerExecutionStrategy());
 }
 public abstract void Configure(IRequestPipelineBuilder builder, IServiceProvider serviceProvider);