пример работает
This commit is contained in:
1 parent
71e92f0301
commit
0b455b8dd8
11 files changed
+50
-43
No files matched your search
@@ -12,7 +12,7 @@ public class Printer : IPrinter
|
||||
return Name;
|
||||
}
|
||||
|
||||
public async Task<TransmittedSharedObject<IPage>> Print(string text)
|
||||
public async Task<TransmittedSharedObject<IPage>> Print(string text, CancellationToken cancellationToken = default)
|
||||
{
|
||||
return new Page {Text = text};
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ public class PrinterFactory : IPrinterFactory
|
||||
{
|
||||
public TransmittedSharedObject<IPrinter> Create(string printerName)
|
||||
{
|
||||
return new Printer(){Name = printerName};
|
||||
return new Printer {Name = printerName};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user