NetworkingPeer.WebRpc C# (CSharp) Method

WebRpc() public method

public WebRpc ( string uriPath, object parameters ) : bool
uriPath string
parameters object
return bool
    public bool WebRpc(string uriPath, object parameters)
    {
        Dictionary<byte, object> opParameters = new Dictionary<byte, object>();
        opParameters.Add(ParameterCode.UriPath, uriPath);
        opParameters.Add(ParameterCode.WebRpcParameters, parameters);

        return this.OpCustom(OperationCode.WebRpc, opParameters, true);

    }
}

Usage Example

Exemplo n.º 1
0
 public static bool WebRpc(string name, object parameters)
 {
     return(networkingPeer.WebRpc(name, parameters));
 }
NetworkingPeer