mirror of
https://github.com/cyanfish/naps2.git
synced 2024-08-16 18:50:45 +03:00
Update HelloWorldSample
This commit is contained in:
parent
4937dd6730
commit
6348be6dc6
@ -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!");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user