Пример #1
0
 public NewOrderCommand(ILogger <ICommand> logger, ServicesResolver servicesResolver)
 {
     _servicesResolver = servicesResolver;
     _logger           = logger;
 }
Пример #2
0
 public CommandResolver(ILogger <CommandResolver> logger, ILogger <ICommand> commandLogger, ServicesResolver servicesResolver)
 {
     _logger = logger;
     _dictionary.Add("Default", () => new DefaultCommand(commandLogger));
     _dictionary.Add($"{nameof(NewOrderCommand).Replace("Command", "")}", () => new NewOrderCommand(commandLogger, servicesResolver));
 }