2025-02-05 18:04:35 +03:00
|
|
|
using Example.Shared;
|
|
|
|
|
using mROA.Implementation;
|
|
|
|
|
|
|
|
|
|
namespace Example.Backend;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Printer : IPrinter
|
|
|
|
|
{
|
|
|
|
|
public string Name;
|
|
|
|
|
public string GetName()
|
|
|
|
|
{
|
|
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-13 10:52:06 +03:00
|
|
|
public async Task<SharedObject<IPage>> Print(string text, CancellationToken cancellationToken = default)
|
2025-02-05 18:04:35 +03:00
|
|
|
{
|
2025-02-06 15:34:38 +03:00
|
|
|
// throw new Exception("The method or operation is not implemented.");
|
2025-02-05 18:04:35 +03:00
|
|
|
return new Page {Text = text};
|
|
|
|
|
}
|
|
|
|
|
}
|