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));
        }
Ejemplo n.º 2
0
 public RequestHandlerToggleHandlerSelector(RequestHandlerToggleInfo toggleInfo)
 {
     _toggleInfo = toggleInfo;
 }