Как то работает, но плохо...

This commit is contained in:
2025-03-11 19:42:10 +03:00
parent 76f395dce5
commit 4033ae53eb
16 changed files with 148 additions and 102 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ namespace Example.Backend
{
public string Name;
public void OnPrintExternal(IPage p0)
public void OnPrintExternal(IPage p0, RequestContext ro)
{
}
@@ -27,12 +27,12 @@ namespace Example.Backend
// throw new Exception("The method or operation is not implemented.");
var page = new Page { Text = text };
Console.WriteLine($"Request id : :{context.RequestId}");
OnPrint?.Invoke(page);
OnPrint?.Invoke(page, new RequestContext(context.RequestId, -1000));
Resource /= 1.5;
return page;
}
public event Action<IPage>? OnPrint;
public event Action<IPage, RequestContext>? OnPrint;
public void Dispose()
{