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)); }
public EventHandlerToggleHandlerSelector(EventHandlerToggleInfo toggleInfo) { _toggleInfo = toggleInfo; }