Ejemplo n.º 1
0
 public RequestReception(ILogger <RequestReception> logger,
                         Gateway gateway,
                         ICommandHandlerManager manager)
 {
     _logger  = logger;
     _manager = manager;
     _gateway = gateway;
 }
Ejemplo n.º 2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="CommandCoordinator">CommandCoordinator</see>
		/// </summary>
		/// <param name="commandHandlerManager">A <see cref="ICommandHandlerManager"/> for handling commands</param>
		/// <param name="commandContextManager">A <see cref="ICommandContextManager"/> for establishing a <see cref="CommandContext"/></param>
        /// <param name="commandSecurityManager">A <see cref="ICommandSecurityManager"/> for dealing with security and commands</param>
		/// <param name="commandValidationService">A <see cref="ICommandValidationService"/> for validating a <see cref="ICommand"/> before handling</param>
		/// <param name="localizer">A <see cref="ILocalizer"/> to use for controlling localization of current thread when handling commands</param>
		public CommandCoordinator(
			ICommandHandlerManager commandHandlerManager,
			ICommandContextManager commandContextManager,
            ICommandSecurityManager commandSecurityManager,
            ICommandValidationService commandValidationService,
			ILocalizer localizer)
		{
			_commandHandlerManager = commandHandlerManager;
			_commandContextManager = commandContextManager;
            _commandSecurityManager = commandSecurityManager;
		    _commandValidationService = commandValidationService;
	    	_localizer = localizer;
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandCoordinator">CommandCoordinator</see>
 /// </summary>
 /// <param name="commandHandlerManager">A <see cref="ICommandHandlerManager"/> for handling commands</param>
 /// <param name="commandContextManager">A <see cref="ICommandContextManager"/> for establishing a <see cref="CommandContext"/></param>
 /// <param name="commandSecurityManager">A <see cref="ICommandSecurityManager"/> for dealing with security and commands</param>
 /// <param name="commandValidators">A <see cref="ICommandValidators"/> for validating a <see cref="ICommand"/> before handling</param>
 /// <param name="localizer">A <see cref="ILocalizer"/> to use for controlling localization of current thread when handling commands</param>
 public CommandCoordinator(
     ICommandHandlerManager commandHandlerManager,
     ICommandContextManager commandContextManager,
     ICommandSecurityManager commandSecurityManager,
     ICommandValidators commandValidators,
     ILocalizer localizer)
 {
     _commandHandlerManager    = commandHandlerManager;
     _commandContextManager    = commandContextManager;
     _commandSecurityManager   = commandSecurityManager;
     _commandValidationService = commandValidators;
     _localizer = localizer;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandCoordinator">CommandCoordinator</see>
 /// </summary>
 /// <param name="commandHandlerManager">A <see cref="ICommandHandlerManager"/> for handling commands</param>
 /// <param name="commandContextManager">A <see cref="ICommandContextManager"/> for establishing a <see cref="CommandContext"/></param>
 /// <param name="commandSecurityManager">A <see cref="ICommandSecurityManager"/> for dealing with security and commands</param>
 /// <param name="commandValidators">A <see cref="ICommandValidators"/> for validating a <see cref="ICommand"/> before handling</param>
 /// <param name="localizer">A <see cref="ILocalizer"/> to use for controlling localization of current thread when handling commands</param>
 /// <param name="exceptionPublisher">An <see cref="IExceptionPublisher"/> to send exceptions to</param>
 public CommandCoordinator(
     ICommandHandlerManager commandHandlerManager,
     ICommandContextManager commandContextManager,
     ICommandSecurityManager commandSecurityManager,
     ICommandValidators commandValidators,
     ILocalizer localizer,
     IExceptionPublisher exceptionPublisher)
 {
     _commandHandlerManager = commandHandlerManager;
     _commandContextManager = commandContextManager;
     _commandSecurityManager = commandSecurityManager;
     _commandValidationService = commandValidators;
     _localizer = localizer;
     _exceptionPublisher = exceptionPublisher;
 }
Ejemplo n.º 5
0
 public RequestReception(ILogger <RequestReception> logger, ICommandHandlerManager manager)
 {
     _logger  = logger;
     _manager = manager;
 }