コード例 #1
0
        private static async Task <IRestResponse> MapResponse(HttpResponseMessage response)
        {
            var restResponse = new WebApiRestResponse
            {
                Content    = await response.Content.ReadAsStringAsync(),
                StatusCode = response.StatusCode
            };

            TrelloConfiguration.Log.Debug($"Status Code: {response.StatusCode} ({(int) response.StatusCode})\n" +
                                          $"Content: {restResponse.Content}");
            return(restResponse);
        }