예제 #1
0
 public async Task <Parameter> SetParameterAsync(string projectName, string parameterName, string parameterValue)
 {
     return(await _httpClient.PutAsync <Parameter, Parameter>(Endpoints.Resolve(Endpoints.Project.Parameters.ByName, projectName, parameterName), new Parameter { Value = parameterValue }));
 }
 public static async Task <T> GetAsync <T>(this HttpClient httpClient, string endpointUrlTemplate, params string[] endpointTokenValue) where T : class, new()
 {
     return(await httpClient.GetAsync <T>(Endpoints.Resolve(endpointUrlTemplate, endpointTokenValue)));
 }