コード例 #1
0
 public static T HttpPost <T>(this Rest restme, string relativeUrlPath = null)
 {
     return(Task.Run(async() => await restme.HttpPostAsync <T>(relativeUrlPath)).Result);
 }
コード例 #2
0
 public static async Task <T> HttpPostAsync <T>(this Rest restme, string relativeUrlPath = null)
 {
     return(await restme.RequestAsync <T>(HttpMethod.Post, relativeUrlPath));
 }
コード例 #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);
 }