Esempio n. 1
0
        public async Task <TResponse> SendMultipartAsync <TResponse>(string method, string endpoint, IReadOnlyDictionary <string, object> multipartArgs, RequestOptions options)
        {
            var request = new MultipartRestRequest(RestClient, method, endpoint, multipartArgs, options);

            return(Deserialize <TResponse>(await SendInternalAsync(request).ConfigureAwait(false)));
        }
Esempio n. 2
0
        public async Task SendMultipartAsync(string method, string endpoint, IReadOnlyDictionary <string, object> multipartArgs, RequestOptions options = null)
        {
            var request = new MultipartRestRequest(RestClient, method, endpoint, multipartArgs, options ?? RequestOptions.Default);

            await SendInternalAsync(request).ConfigureAwait(false);
        }