Exemple #1
0
        public async Task <IFlurlResponse> DeletePoolInfoAsync(SprdPoolInfo sprdPoolInfo)
        {
            Logging.Logger.LogInformation("DeletePoolInfoAsync");

            var response = (await BaseUrl.AppendPathSegments(RelativeUrlDeletePoolSprd, sprdPoolInfo._id)
                            .SetQueryParam("code", AzureCode_DeleteSprd_TestEnvironment).DeleteAsync());

            Logging.Logger.LogInformation("Response received from DeletePoolInfoAsync");
            return(response);
        }
Exemple #2
0
        // https://spread-api.azurewebsites.net/api/del_pool_commit/{id}?code=W/D8J7d4Q1SHIVI65umLfF3xG8aVhOXOcp3OaKkiaIv9spL/kN2KFg==
        public async Task <IFlurlResponse> AddNewPoolInfoAsync(SprdPoolInfo sprdPoolInfo)
        {
            Logging.Logger.LogInformation("AddNewPoolInfo");

            var response = (await BaseUrl.AppendPathSegment(RelativeUrlAddPoolSprd)
                            .SetQueryParam("code", AzureCode_AddSprd_TestEnvironment).PostJsonAsync(sprdPoolInfo));

            Logging.Logger.LogInformation("Response received from AddNewPoolInfo");
            return(response);
        }