Exemplo n.º 1
0
 public static T HttpPost <T>(this Rest restme, string relativeUrlPath = null)
 {
     return(Task.Run(async() => await restme.HttpPostAsync <T>(relativeUrlPath)).Result);
 }
Exemplo n.º 2
0
 public static async Task <T> HttpPostAsync <T>(this Rest restme, string relativeUrlPath = null)
 {
     return(await restme.RequestAsync <T>(HttpMethod.Post, relativeUrlPath));
 }
Exemplo n.º 3
0
 public static T HttpRequest <T>(this Rest restme, HttpMethod method, string relativeUrlPath = null)
 {
     return(Task.Run(async() => await restme.HttpRequestAsync <T>(method, relativeUrlPath)).Result);
 }