Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 internal Task AccessApiNoResponseAsync(MethodType type, string url, Expression <Func <string, object> >[] parameters)
 {
     return(this.AccessApiNoResponseAsyncImpl(type, url, InternalUtils.ExpressionsToDictionary(parameters), CancellationToken.None));
 }
Beispiel #5
0
 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));
 }
Beispiel #6
0
 /// <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));
 }
Beispiel #7
0
 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));
 }
Beispiel #8
0
 internal void AccessApiNoResponse(string url, Expression <Func <string, object> >[] parameters)
 {
     this.AccessApiNoResponseImpl(url, InternalUtils.ExpressionsToDictionary(parameters));
 }
Beispiel #9
0
 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));
 }
Beispiel #10
0
 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));
 }
Beispiel #11
0
 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));
 }
Beispiel #12
0
 /// <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));
 }