public override Task <string> OnRPC(string method, params object[] rpcParamters) { if (RPCHandlers.ContainsKey(method)) { return(RPCHandlers[method].RPCAsync(this, rpcParamters)); } return(this.OnRPC(method, rpcParamters)); }
public virtual void AddRPCHandler(IPlayRPCHandler playRouteHandler) { RPCHandlers.Add(playRouteHandler.Method, playRouteHandler); }