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

            return(eventFlowOptions.UseServiceRegistration(registration));
        }