public override void Configure(IEventPipelineBuilder builder, IServiceProvider serviceProvider)
 {
     builder.AddFilterSelector(new EventFilterSelector());
     builder.AddHandlerSelector(new EventHandlerSelector());
     builder.UseHandlerExecutionStrategy(new EventHandlerExecutionStrategy {
         Action = serviceProvider.GetRequiredService <Action <string> >()
     });
 }
        public override void Configure(IEventPipelineBuilder builder, IServiceProvider serviceProvider)
        {
            var toggleInfo = new EventFilterToggleInfo
            {
                Tags = Tags,
                ToggleDisabledFilterType = ToggleDisabledFilterType,
                ToggleEnabledFilterType  = _toggleEnabledFilterType,
                ToggleName = ToggleName
            };

            builder.AddFilterSelector(new EventFilterToggleFilterSelector(toggleInfo));
        }