public override void Execute(CancellationToken ct) { queueLock = new SemaphoreLock(ct); _tasks.Add(RunSchedulerAsync(ct)); for (int idx = 0; idx < _taskCount; idx++) { _tasks.Add(RunSenderAsync(ct)); } Task.WhenAll(_tasks).Wait(); }
public Http() { semaphoreLock = new SemaphoreLock(); _client = new HttpClient(); }