示例#1
0
        public IHandlerConfiguration Build()
        {
            var serviceProvider = _services.BuildServiceProvider();
            var factory         = new AspNetDependencyInjectionHandlerFactory(serviceProvider);

            return(new AspNetDependencyInjectionHandlerConfiguration(_handlerRegistry, factory));
        }
示例#2
0
 public AspNetDependencyInjectionHandlerConfiguration(IQueryHandlerRegistry handlerRegistry, AspNetDependencyInjectionHandlerFactory factory)
 {
     HandlerRegistry  = handlerRegistry;
     HandlerFactory   = factory;
     DecoratorFactory = factory;
 }