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 EventHandlerToggleInfo
            {
                Tags = Tags,
                ToggleDisabledHandlerType = ToggleDisabledHandlerType,
                ToggleEnabledHandlerType  = _toggleEnabledHandlerType,
                ToggleName = ToggleName
            };

            builder.AddHandlerSelector(new EventHandlerToggleHandlerSelector(toggleInfo));
        }
Пример #3
0
 public abstract void Configure(IEventPipelineBuilder builder, IServiceProvider serviceProvider);
Пример #4
0
 public void Configure(IEventPipelineBuilder <SomethingHappened> builder)
 {
     builder.UsePipe <SomethingHappenedPipe2>();
 }