Beispiel #1
0
        protected async Task <byte[]> ExecutePostReturnsByteArrayAsync <TRequest>(string path, TRequest request, int?timeoutMiliseconds = null)
        {
            var schemeAndHost = GetSchemeAndHostFromConfigs();

            var url = ApiUtils.BuildUrl(schemeAndHost: schemeAndHost, urlPath: path);

            var result = await ApiUtils.ExecutePostWithByteArrayResponseAsync <TRequest>(url : url,
                                                                                         parameters : request,
                                                                                         timeout : timeoutMiliseconds);

            return(result);
        }