Исправлен баг с не правильной генерацией параметров для событий

This commit is contained in:
2025-03-10 17:16:13 +03:00
parent f4a92e4aac
commit b430f1c572
8 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants></DefineConstants>
<DefineConstants>TRACE;</DefineConstants>
</PropertyGroup>
<ItemGroup>
+3 -3
View File
@@ -10,7 +10,7 @@ namespace Example.Backend
{
public string Name;
public void OnPrintExternal(IPage p0, RequestContext p1)
public void OnPrintExternal(IPage p0)
{
}
@@ -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, context);
OnPrint?.Invoke(page);
Resource /= 1.5;
return page;
}
public event Action<IPage, RequestContext>? OnPrint;
public event Action<IPage>? OnPrint;
public void Dispose()
{