public Downloader(DownloaderOptions options) { this.options = options; api = new PluralSightApi(options.Timeout); queue = new TaskQueue(); queue.ProcessCompleteEvent += ClipDownloaded; }
public Downloader(DownloaderOptions options) { if (options.Threads > 10) { throw new InvalidOperationException(); } this.options = options; api = new PluralSightApi(options.Timeout); queue = new TaskQueue(options.Threads); queue.ProcessCompleteEvent += ClipDownloaded; }