コード例 #1
0
ファイル: VSTSAccess.cs プロジェクト: RaphaelK12/ShortStack
 //---------------------------------------------------------------------------------
 /// <summary>
 /// Make a POST rest call
 /// </summary>
 //---------------------------------------------------------------------------------
 T RestPost <T>(VstsApi api, HttpContent content, Dictionary <string, string> query = null)
 => RestCall <T>((HttpClient client) => client.PostAsync(new Uri(GetApiUrl(api.ToString(), query)), content));
コード例 #2
0
ファイル: VSTSAccess.cs プロジェクト: RaphaelK12/ShortStack
 //---------------------------------------------------------------------------------
 /// <summary>
 /// Make a GET rest call
 /// </summary>
 //---------------------------------------------------------------------------------
 T RestGet <T>(VstsApi api, Dictionary <string, string> query = null)
 => RestCall <T>((HttpClient client) => client.GetAsync(new Uri(GetApiUrl(api.ToString(), query))));