public Worker(ILogger <Worker> logger, IConfiguration config, ProductFactory productFactory) { _logger = logger; _config = config; _productFactory = productFactory; }
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)); }