protected BaseWorker(BaseOptions opts) { if (opts.Period.TotalSeconds < 1) { _period = TimeSpan.FromSeconds(1); } else { _period = opts.Period; } _once = opts.Once; if (opts.CancellationToken == null) { throw new ArgumentException("cancellation token is null"); } CancellationToken = opts.CancellationToken; }
public NotificationSender(BaseOptions opts) : base(opts) { }