Ejemplo n.º 1
0
        public async Task <TResponse> SendFormAsync <TResponse>(string method, string endpoint, IReadOnlyDictionary <string, object> formArgs, RequestOptions options = null)
        {
            var request = new FormRestRequest(RestClient, method, endpoint, formArgs, options);

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

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