public ValuesController(IQueriesDispatcher queriesDispatcher, ICommandsDispatcher commandsDispatcher, ILogger <ValuesController> logger, IOptionsSnapshot <ValuesControllerOptions> options) { if (queriesDispatcher == null) { throw new ArgumentNullException(nameof(queriesDispatcher)); } if (commandsDispatcher == null) { throw new ArgumentNullException(nameof(commandsDispatcher)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } _queriesDispatcher = queriesDispatcher; _commandsDispatcher = commandsDispatcher; _logger = logger; _controllerOptions = options.Value; }
public ValuesController(IGetValuesQuery getValuesQuery, IMakeEvenItemsLowercaseWorkflow makeEvenItemsLowercaseWorkflow, ICommandsDispatcher commandsDispatcher) { GetValuesQuery = getValuesQuery; MakeEvenItemsLowercaseWorkflow = makeEvenItemsLowercaseWorkflow; CommandsDispatcher = commandsDispatcher; }
public TweetsController(IQueriesDispatcher queriesDispatcher, ICommandsDispatcher commandsDispatcher, TweetsSettings tweetsSettings) { _queriesDispatcher = queriesDispatcher ?? throw new ArgumentNullException(nameof(queriesDispatcher)); _commandsDispatcher = commandsDispatcher ?? throw new ArgumentNullException(nameof(commandsDispatcher)); _tweetsSettings = tweetsSettings ?? throw new ArgumentNullException(nameof(tweetsSettings)); }
/// <summary> /// Constructor /// </summary> /// <param name="queriesDispatcher">Queries dispatcher</param> /// <param name="commandsDispatcher">Commands dispatcher</param> /// <param name="logger">Messages logger</param> public ValuesController(IQueriesDispatcher queriesDispatcher, ICommandsDispatcher commandsDispatcher, ILogger <ValuesController> logger) { if (queriesDispatcher == null) { throw new ArgumentNullException(nameof(queriesDispatcher)); } if (commandsDispatcher == null) { throw new ArgumentNullException(nameof(commandsDispatcher)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } _queriesDispatcher = queriesDispatcher; _commandsDispatcher = commandsDispatcher; _logger = logger; }
public OrdersController(IQueriesDispatcher queryDispatcher, ICommandsDispatcher commandsDispatcher) { _commandsDispatcher = commandsDispatcher ?? throw new ArgumentNullException(nameof(commandsDispatcher)); _queryDispatcher = queryDispatcher ?? throw new ArgumentNullException(nameof(queryDispatcher)); }
public MakeEvenItemsLowercaseWorkflow(IGetValuesQuery getValuesQuery, ICommandsDispatcher commandsDispatcher) { GetValuesQuery = getValuesQuery; CommandsDispatcher = commandsDispatcher; }
public ConfirmModel(IGetTimeSlotQuery getSlotQuery, ICommandsDispatcher commandsDispatcher, IUserIdentityService identityService) { this.getSlotQuery = getSlotQuery; this.commandsDispatcher = commandsDispatcher; this.identityService = identityService; }