/// <summary> /// Sends a request to the specified url with the specified parameters. /// </summary> /// <param name="type">The type of HTTP request.</param> /// <param name="url">The URL.</param> /// <param name="parameters">The parameters.</param> /// <returns>A <see cref="HttpWebResponse"/>.</returns> public HttpWebResponse SendRequest(MethodType type, string url, params Expression <Func <string, object> >[] parameters) { return(this.SendRequestImpl(type, url, InternalUtils.ExpressionsToDictionary(parameters), this.ConnectionOptions)); }
internal void AccessApiNoResponse(MethodType type, string url, Expression <Func <string, object> >[] parameters, string urlPrefix = null, string urlSuffix = null) { this.AccessApiNoResponseImpl(type, url, InternalUtils.ExpressionsToDictionary(parameters), urlPrefix, urlSuffix); }
internal ListedResponse <T> AccessJsonParameteredApiArray <T>(string url, Expression <Func <string, object> >[] parameters, string[] jsonMap, string jsonPath = "", string urlPrefix = null, string urlSuffix = null) { return(this.AccessJsonParameteredApiArrayImpl <T>(url, InternalUtils.ExpressionsToDictionary(parameters), jsonMap, jsonPath, urlPrefix, urlSuffix)); }
internal Task AccessApiNoResponseAsync(MethodType type, string url, Expression <Func <string, object> >[] parameters) { return(this.AccessApiNoResponseAsyncImpl(type, url, InternalUtils.ExpressionsToDictionary(parameters), CancellationToken.None)); }
internal DictionaryResponse <TKey, TValue> AccessApiDictionary <TKey, TValue>(MethodType type, string url, Expression <Func <string, object> >[] parameters, string jsonPath = "", string urlPrefix = null, string urlSuffix = null) { return(this.AccessApiDictionaryImpl <TKey, TValue>(type, url, InternalUtils.ExpressionsToDictionary(parameters), jsonPath, urlPrefix, urlSuffix)); }
/// <summary> /// Sends a request to the specified url with the specified parameters as an asynchronous operation. /// </summary> /// <param name="type">The type of HTTP request.</param> /// <param name="url">The URL.</param> /// <param name="parameters">The parameters.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns> /// <para>The task object representing the asynchronous operation.</para> /// <para>The Result property on the task object returns a <see cref="AsyncResponse"/>.</para> /// </returns> public Task <AsyncResponse> SendRequestAsync(MethodType type, string url, CancellationToken cancellationToken = default(CancellationToken), params Expression <Func <string, object> >[] parameters) { return(this.SendRequestAsyncImpl(type, url, InternalUtils.ExpressionsToDictionary(parameters), this.ConnectionOptions, cancellationToken)); }
internal Task <DictionaryResponse <TKey, TValue> > AccessApiDictionaryAsync <TKey, TValue>(MethodType type, string url, Expression <Func <string, object> >[] parameters, string jsonPath = "") { return(this.AccessApiDictionaryAsyncImpl <TKey, TValue>(type, url, InternalUtils.ExpressionsToDictionary(parameters), CancellationToken.None, jsonPath)); }
internal void AccessApiNoResponse(string url, Expression <Func <string, object> >[] parameters) { this.AccessApiNoResponseImpl(url, InternalUtils.ExpressionsToDictionary(parameters)); }
internal Task <ListedResponse <T> > AccessJsonParameteredApiArrayAsync <T>(string url, Expression <Func <string, object> >[] parameters, string[] jsonMap, string jsonPath = "") { return(this.AccessJsonParameteredApiArrayAsyncImpl <T>(url, InternalUtils.ExpressionsToDictionary(parameters), jsonMap, CancellationToken.None, jsonPath)); }
internal ListedResponse <T> AccessApiArray <T>(MethodType type, string url, Expression <Func <string, object> >[] parameters, string jsonPath = "") { return(this.AccessApiArrayImpl <T>(type, url, InternalUtils.ExpressionsToDictionary(parameters), jsonPath)); }
internal T AccessJsonParameteredApi <T>(string url, Expression <Func <string, object> >[] parameters, string[] jsonMap, string jsonPath = "") { return(this.AccessJsonParameteredApiImpl <T>(url, InternalUtils.ExpressionsToDictionary(parameters), jsonMap, jsonPath)); }
/// <summary> /// Sends a request to the specified url with the specified parameters. /// </summary> /// <returns> /// The stream. /// </returns> /// <param name='type'> /// Type of HTTP request. /// </param> /// <param name='url'> /// URL. /// </param> /// <param name='parameters'> /// Parameters. /// </param> public Stream SendRequest(MethodType type, string url, params Expression <Func <string, object> >[] parameters) { return(this.SendRequest(type, url, InternalUtils.ExpressionsToDictionary(parameters))); }
internal Task <ListedResponse <T> > AccessApiArrayAsync <T>(MethodType type, string url, Expression <Func <string, object> >[] parameters, string jsonPath = "", string urlPrefix = null, string urlSuffix = null) { return(this.AccessApiArrayAsyncImpl <T>(type, url, InternalUtils.ExpressionsToDictionary(parameters), CancellationToken.None, jsonPath, urlPrefix, urlSuffix)); }
internal Task <T> AccessJsonParameteredApiAsync <T>(string url, Expression <Func <string, object> >[] parameters, string[] jsonMap, string jsonPath = "", string urlPrefix = null, string urlSuffix = null) { return(this.AccessJsonParameteredApiAsyncImpl <T>(url, InternalUtils.ExpressionsToDictionary(parameters), jsonMap, CancellationToken.None, jsonPath, urlPrefix, urlSuffix)); }