public static IEventFlowOptions UseAutofacContainerBuilder( this IEventFlowOptions eventFlowOptions, ContainerBuilder containerBuilder) { return(eventFlowOptions .UseServiceRegistration(new AutofacServiceRegistration(containerBuilder))); }
public static IEventFlowOptions UseServiceCollection(this IEventFlowOptions eventFlowOptions, IServiceCollection serviceCollection = null) { var registration = new ServiceCollectionServiceRegistration(serviceCollection); return(eventFlowOptions.UseServiceRegistration(registration)); }