public ShawarmaRequestHandler(
     IApplicationStateProvider stateProvider,
     ILogger <ShawarmaRequestHandler> logger)
 {
     _stateProvider = stateProvider ?? throw new ArgumentNullException(nameof(stateProvider));
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new <see cref="ShawarmaExecutor"/>.
 /// </summary>
 /// <param name="stateProvider">The <see cref="IApplicationStateProvider"/>.</param>
 /// <param name="services">List of <see cref="IShawarmaService"/> instances to manage.</param>
 /// <param name="logger">An <see cref="ILogger{TCategoryName}"/> for logging.</param>
 public ShawarmaExecutor(IApplicationStateProvider stateProvider,
                         IEnumerable <IShawarmaService> services,
                         ILogger <ShawarmaExecutor> logger)
 {
     _stateProvider = stateProvider ?? throw new ArgumentNullException(nameof(stateProvider));
     _services      = services ?? throw new ArgumentNullException(nameof(services));
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
 }