Новый проект для codegen-tools

This commit is contained in:
2025-03-18 23:08:14 +03:00
parent f1f5007ae6
commit a6c743c78b
3 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ namespace Example.Backend
public void OnPrintExternal(IPage p0, RequestContext ro)
{
OnPrint?.Invoke(p0, ro);
}
public double Resource { get; set; } = 100d;
@@ -27,7 +28,7 @@ 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, new RequestContext(Guid.NewGuid(), 132));
OnPrint?.Invoke(page, context);
Resource /= 1.5;
return page;
}