/// <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))); }
/// <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)); }
/// <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))); }
/// <summary> /// call with no return value and no body /// </summary> /// <param name="path"></param> public void Invoke(string path) { Invoke(RpcRequest.Create(path)); }