билдится на старом дотнете
This commit is contained in:
@@ -1,28 +1,32 @@
|
||||
using Example.Shared;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Example.Shared;
|
||||
using mROA.Implementation;
|
||||
|
||||
namespace Example.Frontend;
|
||||
|
||||
public class ClientBasedPrinter : IPrinter
|
||||
namespace Example.Frontend
|
||||
{
|
||||
public string GetName()
|
||||
public class ClientBasedPrinter : IPrinter
|
||||
{
|
||||
Console.WriteLine("ClientBasedPrinter called from server!!!!!!!!!!! Vova likes that:)");
|
||||
return "ClientBasedPrinter from mroa";
|
||||
public string GetName()
|
||||
{
|
||||
Console.WriteLine("ClientBasedPrinter called from server!!!!!!!!!!! Vova likes that:)");
|
||||
return "ClientBasedPrinter from mroa";
|
||||
}
|
||||
|
||||
public async Task<SharedObject<IPage>> Print(string text, CancellationToken cancellationToken)
|
||||
{
|
||||
Console.WriteLine($"Printed: {text}");
|
||||
await Task.Yield();
|
||||
return new ClientBasedPage();
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<SharedObject<IPage>> Print(string text, CancellationToken cancellationToken)
|
||||
public class ClientBasedPage : IPage
|
||||
{
|
||||
Console.WriteLine($"Printed: {text}");
|
||||
await Task.Yield();
|
||||
return new ClientBasedPage();
|
||||
}
|
||||
}
|
||||
|
||||
public class ClientBasedPage : IPage
|
||||
{
|
||||
public byte[] GetData()
|
||||
{
|
||||
return [1, 2, 3];
|
||||
public byte[] GetData()
|
||||
{
|
||||
return new byte[] { 1, 2, 3 };
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user