Theodore Freeman
Theodore Freeman
# OS CentOS 7 must be used, other versions of the OS are beyond the scope of this article. I tried CentOS 6.x before, the .Net environment was not installed...
Please check if you have checked "Load outdated addons".
是为了保持回调函数的签名统一,这样可以大大简化代码的实现。 你说那种方式不是不行,但是会把这里弄的很复杂,这是一种妥协吧,牺牲调用的便捷性,换来底层实现的简洁。 相关代码: ```cs // ServiceContext.cs delegate void Method(int source, int session, string method, byte[] param); class ServiceContext { private Dictionary m_serviceMethods = new Dictionary(); protected void RegisterServiceMethods(string methodName, Method...