Как то худо-бедно начинает работать лучше

This commit is contained in:
micialware committed 2025-03-08 23:22:59 +03:00
1 parent 0e09b479af
commit 493f56c99a
6 files changed
+16 -6

No files matched your search

+6
View File
@@ -75,6 +75,12 @@ class Program
var page = disposingPrinter.Print("Test Page", false, CancellationToken.None).GetAwaiter().GetResult();
Console.WriteLine("Page printed");
Console.WriteLine(page.ToString());
Console.WriteLine($"Printer resource : {disposingPrinter.Resource}");
Console.WriteLine("Restoring resource");
disposingPrinter.Resource = 100;
Console.WriteLine($"Printer resource again : {disposingPrinter.Resource}");
var data = page.GetData();
Console.WriteLine("Data : {0}", Encoding.UTF8.GetString(data));