Beispiel #1
0
        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);
        }
Beispiel #2
0
        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());
        }