Beispiel #1
0
        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();
        }
Beispiel #2
0
 public Http()
 {
     semaphoreLock = new SemaphoreLock();
     _client       = new HttpClient();
 }