public BackgroundQueue(BackgroundQueueOptions options) { _state = new BackgroundQueueState(options); }
public BackgroundQueueState(BackgroundQueueOptions options) { _options = options ?? throw new ArgumentNullException(nameof(options)); _scheduler = options.Scheduler ?? TaskScheduler.Default; }