/// <summary> /// Mediator constructor /// </summary> /// <param name="provider">Event and query handlers provider</param> /// <param name="middlewareProvider">Event and query middlewares provider</param> /// <param name="eventDispatchStrategy">Event dispatching strategy to use</param> public Mediator(IHandlerProvider provider, IMiddlewareProvider middlewareProvider, IEventDispatchStrategy eventDispatchStrategy) { _queryHandlerProvider = provider; _eventHandlerProvider = provider; _eventDispatchStrategy = eventDispatchStrategy; _queryMiddlewareProvider = middlewareProvider; _eventMiddlewareProvider = middlewareProvider; }
public ReadController(IQueryHandlerProvider queryHandlerProvider) { _queryHandlerProvider = queryHandlerProvider; }
/// <summary>Initializes a new instance of the <see cref="ControllerBase"/> class.</summary> /// <param name="queryHandlerProvider">The query handler provider.</param> protected ControllerBase(IQueryHandlerProvider queryHandlerProvider) { this.QueryHandlerProvider = queryHandlerProvider; }
public QueryWrapper(IQueryHandlerProvider queryHandlerProvider, IQueryMiddlewareProvider queryMiddlewareProvider) { _queryHandlerProvider = queryHandlerProvider; _queryMiddlewareProvider = queryMiddlewareProvider; }
/// <summary>Initializes a new instance of the <see cref="PerformanceDataController"/> class.</summary> /// <param name="queryHandlerProvider">Using query handler provider.</param> public PerformanceDataController(IQueryHandlerProvider queryHandlerProvider) : base(queryHandlerProvider) { }