Код: Выделить всё
var clientResponse = await _httpClient.PostAsync(rtmUrl, content);
string responseContent = clientResponse.Content.ReadAsStringAsync().GetAwaiter().GetResult();
HttpContentDto httpContentDto = JsonConvert.DeserializeObject(responseContent);
Подробнее здесь: https://stackoverflow.com/questions/796 ... t-index-17