示例#1
0
        protected void RemoteCall(string remoteNode, string service, string method, byte[] param, SSContext context, RPCCallback cb)
        {
            ClusterClientRequest request = new ClusterClientRequest();

            request.remoteNode    = remoteNode;
            request.remoteService = service;
            request.method        = method;
            request.param         = Convert.ToBase64String(param);

            Call("clusterClient", "Request", request.encode(), context, cb);
        }
示例#2
0
        protected void RemoteSend(string remoteNode, string service, string method, byte[] param)
        {
            ClusterClientRequest request = new ClusterClientRequest();

            request.remoteNode    = remoteNode;
            request.remoteService = service;
            request.method        = method;
            request.param         = Convert.ToBase64String(param);

            Call("clusterClient", "Request", request.encode(), null, RemoteSendDummyCallback);
        }