コード例 #1
0
 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));
 }
コード例 #2
0
 public virtual void AddRPCHandler(IPlayRPCHandler playRouteHandler)
 {
     RPCHandlers.Add(playRouteHandler.Method, playRouteHandler);
 }