Esempio n. 1
0
        /// <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;
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 public QueryWrapper(IQueryHandlerProvider queryHandlerProvider, IQueryMiddlewareProvider queryMiddlewareProvider)
 {
     _queryHandlerProvider    = queryHandlerProvider;
     _queryMiddlewareProvider = queryMiddlewareProvider;
 }
Esempio n. 5
0
 /// <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)
 {
 }