public IHandlerConfiguration Build() { var serviceProvider = _services.BuildServiceProvider(); var factory = new AspNetDependencyInjectionHandlerFactory(serviceProvider); return(new AspNetDependencyInjectionHandlerConfiguration(_handlerRegistry, factory)); }
public AspNetDependencyInjectionHandlerConfiguration(IQueryHandlerRegistry handlerRegistry, AspNetDependencyInjectionHandlerFactory factory) { HandlerRegistry = handlerRegistry; HandlerFactory = factory; DecoratorFactory = factory; }