Exemple #1
0
 public static void AddRequestBus(this ContainerBuilder containerBuilder)
 {
     //containerBuilder.RegisterInstance(kernel).As<IServiceProvider>();
     containerBuilder.RegisterType <RequestHandlerFactory>().As <IRequestHandlerFactory>();
     containerBuilder.RegisterType <RequestBus>().AsSelf().SingleInstance();
     containerBuilder.AddAllHandlersAndValidators();
 }