using System; using System.Threading; using System.Threading.Tasks; using Example.Shared; using mROA.Implementation; namespace Example.Frontend { public class ClientBasedPrinter : IPrinter { public int Prop { get; set; } public int get_Prop() { return 1; } public int set_Prop(int value) { return 1; } public string GetName() { Console.WriteLine("ClientBasedPrinter called from server!!!!!!!!!!! Vova likes that:)"); return "ClientBasedPrinter from mroa"; } public async Task Print(string text, bool some, CancellationToken cancellationToken) { Console.WriteLine($"Printed: {text}"); await Task.Yield(); return new ClientBasedPage(); } public event Action? OnPrint; public void Dispose() { } } public class ClientBasedPage : IPage { public byte[] GetData() { return new byte[] { 1, 2, 3 }; } } }