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)); }
public abstract void Configure(IEventPipelineBuilder builder, IServiceProvider serviceProvider);
public void Configure(IEventPipelineBuilder <SomethingHappened> builder) { builder.UsePipe <SomethingHappenedPipe2>(); }