protected internal override async Task <dynamic> SendRequest(object payload) { await EnsureScmHttpClient(); using (var response = await ScmClient.PostAsJsonAsync($"{ScmBaseUrl}/funclite", payload)) { response.EnsureSuccessStatusCode(); return(await response.Content.ReadAsAsync <dynamic>()); } }
async Task RunKuduCommand(string command) { await EnsureScmHttpClient(); using (var response = await ScmClient.PostAsJsonAsync( $"{ScmBaseUrl}/api/command", new { command = command })) { response.EnsureSuccessStatusCode(); } }