2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-03-31 18:38:22 +00:00

No templates anymore

This commit is contained in:
2026-03-18 18:47:18 +03:00
parent 05d2c04857
commit ee3fbd116d
23 changed files with 208 additions and 956 deletions

View File

@@ -170,14 +170,14 @@ public class EpServer : NetworkServer<EpConnection>, IResource
public struct CallInfo
{
public FunctionDef Template;
public FunctionDef Definition;
public Delegate Delegate;
}
public EpServer MapCall(string call, Delegate handler)
{
var ft = FunctionDef.MakeFunctionDef(null, handler.Method, 0, call, null);
Calls.Add(call, new CallInfo() { Delegate = handler, Template = ft });
var fd = FunctionDef.MakeFunctionDef(null, handler.Method, 0, call, null);
Calls.Add(call, new CallInfo() { Delegate = handler, Definition = fd });
return this;
}