Exemple #1
0
            private async Task Commit()
            {
                var run = _run;

                _run = null;
                await run;

                QueueInfoWithExceptions.ConfirmSuccess(_queues.ToArray());
            }
Exemple #2
0
            public SynqProcessor(int concurrentDownloads, CancellationToken cancellationToken)
            {
                _queues.Add(_preparer     = new QueueInfoWithExceptions());
                _queues.Add(_compressor   = new QueueInfoWithExceptions());
                _queues.Add(_downloader   = new QueueInfoWithExceptions(concurrentDownloads));
                _queues.Add(_decompressor = new QueueInfoWithExceptions());
                var processor = new Processor();

                _run = processor.Run(cancellationToken, _queues.ToArray());
            }