еще один шаг до последнего шага
This commit is contained in:
1 parent
59c77bc9df
commit
e5253138db
17 files changed
+125
-31
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using Example.Shared;
|
||||
using mROA.Implementation;
|
||||
|
||||
namespace Example.Frontend;
|
||||
|
||||
public class ClientBasedPrinter : IPrinter
|
||||
{
|
||||
public string GetName()
|
||||
{
|
||||
return "ClientBasedPrinter";
|
||||
}
|
||||
|
||||
public async Task<SharedObject<IPage>> Print(string text, CancellationToken cancellationToken)
|
||||
{
|
||||
Console.WriteLine($"Printed: {text}");
|
||||
await Task.Yield();
|
||||
return new ClientBasedPage();
|
||||
}
|
||||
}
|
||||
|
||||
public class ClientBasedPage : IPage
|
||||
{
|
||||
public byte[] GetData()
|
||||
{
|
||||
return [1, 2, 3];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user