private async Task PostRequestAsync()

in Common/ConnectorCommon/RestApiRepository.cs [114:127]


        private async Task<HttpResponseMessage> PostRequestAsync<T>(string requestUri, Dictionary<string, string> headers, T request, CancellationToken cancellationToken)
        {
            var httpClient = this.HttpClient;
            if (headers != null)
            {
                foreach (var header in headers)
                {
                    httpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
                }
            }

            HttpResponseMessage response = await httpClient.PostAsJsonAsync(requestUri, request, cancellationToken);
            return response;
        }