コード例 #1
0
 public CommandProcessorDecorator(
     IAmACommandProcessor commandProcessor,
     IUserIdProvider userIdProvider,
     ICommandQueryLogger commandQueryLogger)
 {
     _commandProcessor   = commandProcessor ?? throw new ArgumentNullException(nameof(commandProcessor));
     _userIdProvider     = userIdProvider;
     _commandQueryLogger = commandQueryLogger;
 }
コード例 #2
0
 public QueryProcessorDecorator(IUserIdProvider userIdProvider, ICommandQueryLogger commandQueryLogger, IQueryProcessor decoratee)
 {
     _userIdProvider     = userIdProvider;
     _commandQueryLogger = commandQueryLogger;
     _decoratee          = decoratee;
 }