еще один шаг до последнего шага
This commit is contained in:
@@ -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