public TopShelfService(TaskWithCancellation svc, IOptions <TopShelfSettings> topShelfSettings) { _settings = topShelfSettings.Value; _stuffToDo = svc; }
public TaskWithCancellation(ILoggerFactory logFactory, IOptions <TopShelfSettings> topShelfOptions) { _settings = topShelfOptions.Value; _logger = logFactory.CreateLogger("TaskWithCancellation"); }