Update HelloWorldSample

This commit is contained in:
Ben Olden-Cooligan 2023-04-22 11:51:13 -07:00
parent 4937dd6730
commit 6348be6dc6

View File

@ -14,12 +14,9 @@ public class HelloWorldSample
var controller = new ScanController(scanningContext); var controller = new ScanController(scanningContext);
ScanDevice device = (await controller.GetDeviceList()).First(); ScanDevice device = (await controller.GetDeviceList()).First();
var options = new ScanOptions { Device = device }; var options = new ScanOptions { Device = device };
await foreach(var image in controller.Scan(options)) await foreach (var image in controller.Scan(options))
{ {
using (image) Console.WriteLine("Scanned a page!");
{
Console.WriteLine("Scanned a page!");
}
} }
} }
} }