public override void Configure(IEventPipelineBuilder builder, IServiceProvider serviceProvider)
        {
            var toggleInfo = new EventHandlerToggleInfo
            {
                Tags = Tags,
                ToggleDisabledHandlerType = ToggleDisabledHandlerType,
                ToggleEnabledHandlerType  = _toggleEnabledHandlerType,
                ToggleName = ToggleName
            };

            builder.AddHandlerSelector(new EventHandlerToggleHandlerSelector(toggleInfo));
        }
예제 #2
0
 public EventHandlerToggleHandlerSelector(EventHandlerToggleInfo toggleInfo)
 {
     _toggleInfo = toggleInfo;
 }