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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user