Esempio n. 1
0
 /// <summary>
 /// call without body
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="path"></param>
 /// <returns></returns>
 public T Call <T>(string path)
 {
     return(Call <T>(RpcRequest.Create(path)));
 }
Esempio n. 2
0
 /// <summary>
 /// call with body
 /// </summary>
 /// <param name="path"></param>
 /// <param name="body"></param>
 public void Invoke(string path, object body)
 {
     Invoke(RpcRequest.Create(path, body, _serializer));
 }
Esempio n. 3
0
 /// <summary>
 /// call with body
 /// </summary>
 /// <typeparam name="T">return value type</typeparam>
 /// <param name="path">service path</param>
 /// <param name="body"></param>
 /// <returns></returns>
 public T Call <T>(string path, object body)
 {
     return(Call <T>(RpcRequest.Create(path, body, _serializer)));
 }
Esempio n. 4
0
 /// <summary>
 /// call with no return value and no body
 /// </summary>
 /// <param name="path"></param>
 public void Invoke(string path)
 {
     Invoke(RpcRequest.Create(path));
 }