public CommandProcessorDecorator( IAmACommandProcessor commandProcessor, IUserIdProvider userIdProvider, ICommandQueryLogger commandQueryLogger) { _commandProcessor = commandProcessor ?? throw new ArgumentNullException(nameof(commandProcessor)); _userIdProvider = userIdProvider; _commandQueryLogger = commandQueryLogger; }
public QueryProcessorDecorator(IUserIdProvider userIdProvider, ICommandQueryLogger commandQueryLogger, IQueryProcessor decoratee) { _userIdProvider = userIdProvider; _commandQueryLogger = commandQueryLogger; _decoratee = decoratee; }