示例#1
0
 public Worker(ILogger <Worker> logger, IConfiguration config, ProductFactory productFactory)
 {
     _logger         = logger;
     _config         = config;
     _productFactory = productFactory;
 }
示例#2
0
 public Worker(ILogger <Worker> logger, IConfiguration config, ProductFactory factory)
 {
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
     _config  = config ?? throw new ArgumentNullException(nameof(config));
     _factory = factory ?? throw new ArgumentNullException(nameof(factory));
 }