Esempio n. 1
0
        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>());
            }
        }
Esempio n. 2
0
        async Task RunKuduCommand(string command)
        {
            await EnsureScmHttpClient();

            using (var response = await ScmClient.PostAsJsonAsync(
                       $"{ScmBaseUrl}/api/command",
                       new
            {
                command = command
            }))
            {
                response.EnsureSuccessStatusCode();
            }
        }