Example #1
0
        public async Task <T> Post <T>(string url, object json = null)
        {
            if (url == null)
            {
                throw new ArgumentNullException(nameof(url));
            }

            var requestUri = GetRequestUri(url);

            using (var httpResponse = await _httpClient.HttpPost(requestUri, json))
            {
                return(await DeserializedResponse <T>(httpResponse));
            }
        }