public async Task Scan(ScanOptions options) { var job = await jobCreator.CreateJob(options); await job.MonitorAsync(); var fileFetcher = new EsclFileFetcher(esclClient, Host, job.Uri); await fileFetcher.SaveToFile(options.OutputPath); }
public async Task <Stream> GetPreviewAsync(ScanOptions options) { var job = await jobCreator.CreateJob(options); await job.MonitorAsync(); var fileFetcher = new EsclFileFetcher(esclClient, Host, job.Uri); return(await fileFetcher.GetStreamAsync()); }