public static void Close(string method) { var server = _setting.GetFactory().Create(method); server.Close(); RPCEvents.RaiseServerClosed(server, new RPCEvents.ServerClosedArgs(method)); }
public static void Open(string method, IRPCHandler handler) { var server = _setting.GetFactory().Create(method); server.Open(handler); RPCEvents.RaiseServerOpened(server, new RPCEvents.ServerOpenedArgs(method)); }