Class MethodInvocation
Helpers for calling HTTP methods.
Inheritance
Inherited Members
Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient.dll
Syntax
public static class MethodInvocation
  Methods
CreateDeserializedResponse<TResponse>(Task<HttpResponseMessage>)
Creates the deserialized response.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> CreateDeserializedResponse<TResponse>(this Task<HttpResponseMessage> response)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> | response | The response.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
CreateDeserializedResponse<TResponse>(Task<HttpResponseMessage>, HttpClientProxy)
Creates the deserialized response.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> CreateDeserializedResponse<TResponse>(this Task<HttpResponseMessage> response, HttpClientProxy proxy)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> | response | The response.  | 
      
| HttpClientProxy | proxy | The proxy.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
CreateMessageBody<TRequest>(TRequest, String)
Creates the message body.
Declaration
public static HttpContent CreateMessageBody<TRequest>(TRequest dataToSend, string requestContentType)
    where TRequest : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| TRequest | dataToSend | The data to send.  | 
      
| System.String | requestContentType | Type of the request content.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Net.Http.HttpContent | 
Type Parameters
| Name | Description | 
|---|---|
| TRequest | The type of the request.  | 
      
Delete<TResponse>(IRelations, HttpClient, String, String[])
Sends a HTTP DELETE message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Delete<TResponse>(this IRelations relations, HttpClient httpClient, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| System.Net.Http.HttpClient | httpClient | The HTTP client.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Delete<TResponse>(IRelations, HttpClient, CancellationToken, String, String[])
Sends a HTTP DELETE message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Delete<TResponse>(this IRelations relations, HttpClient httpClient, CancellationToken cancellationToken, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| System.Net.Http.HttpClient | httpClient | The HTTP client.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Delete<TResponse>(IRelationsWithProxy, String, String[])
Sends a HTTP DELETE message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Delete<TResponse>(this IRelationsWithProxy relations, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Delete<TResponse>(IRelationsWithProxy, CancellationToken, String, String[])
Sends a HTTP DELETE message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Delete<TResponse>(this IRelationsWithProxy relations, CancellationToken cancellationToken, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Get<TResponse>(IRelations, HttpClient, String, String[])
Sends a HTTP GET message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Get<TResponse>(this IRelations relations, HttpClient httpClient, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| System.Net.Http.HttpClient | httpClient | The HTTP client.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Get<TResponse>(IRelations, HttpClient, CancellationToken, String, String[])
Sends a HTTP GET message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Get<TResponse>(this IRelations relations, HttpClient httpClient, CancellationToken cancellationToken, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| System.Net.Http.HttpClient | httpClient | The HTTP client.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Get<TResponse>(IRelationsWithProxy, String, String[])
Sends a HTTP GET message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Get<TResponse>(this IRelationsWithProxy relations, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Get<TResponse>(IRelationsWithProxy, CancellationToken, String, String[])
Sends a HTTP GET message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Get<TResponse>(this IRelationsWithProxy relations, CancellationToken cancellationToken, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(HttpClientProxy, String, HttpMethod, HttpContent, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this HttpClientProxy httpClientProxy, string uri, HttpMethod method, HttpContent dataToSend, string acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.String | uri | The URI.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.Net.Http.HttpContent | dataToSend | The content to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(HttpClientProxy, String, HttpMethod, String[])
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this HttpClientProxy httpClientProxy, string url, HttpMethod method, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.String | url | The url.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(HttpClientProxy, CancellationToken, String, HttpMethod, HttpContent, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this HttpClientProxy httpClientProxy, CancellationToken cancellationToken, string uri, HttpMethod method, HttpContent dataToSend, string acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | uri | The URI.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.Net.Http.HttpContent | dataToSend | The content to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(HttpClientProxy, CancellationToken, String, HttpMethod, String[])
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this HttpClientProxy httpClientProxy, CancellationToken cancellationToken, string url, HttpMethod method, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | url | The url.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(IRelations, HttpMethod, HttpClient, String, String[])
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this IRelations relations, HttpMethod method, HttpClient httpClient, string relationName, string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.Net.Http.HttpClient | httpClient | The HTTP client.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(IRelations, CancellationToken, HttpMethod, HttpClient, String, String[])
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this IRelations relations, CancellationToken cancellationToken, HttpMethod method, HttpClient httpClient, string relationName, string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.Net.Http.HttpClient | httpClient | The HTTP client.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(IRelationsWithProxy, HttpMethod, String, String[])
Sends a message to the specified proxy.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this IRelationsWithProxy relations, HttpMethod method, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(IRelationsWithProxy, String, HttpMethod, HttpContent, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this IRelationsWithProxy relations, string relationName, HttpMethod method, HttpContent dataToSend, string acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.Net.Http.HttpContent | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(IRelationsWithProxy, CancellationToken, HttpMethod, String, String[])
Sends a message to the specified proxy.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this IRelationsWithProxy relations, CancellationToken cancellationToken, HttpMethod method, string relationName, params string[] acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.String[] | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse>(IRelationsWithProxy, CancellationToken, String, HttpMethod, HttpContent, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(this IRelationsWithProxy relations, CancellationToken cancellationToken, string relationName, HttpMethod method, HttpContent dataToSend, string acceptType)
    where TResponse : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.Net.Http.HttpContent | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
Send<TResponse, TRequest>(HttpClientProxy, String, HttpMethod, String, TRequest, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse, TRequest>(this HttpClientProxy httpClientProxy, string uri, HttpMethod method, string requestContentType, TRequest dataToSend, string acceptType)
    where TResponse : class where TRequest : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.String | uri | The URI.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | requestContentType | Type of the request content.  | 
      
| TRequest | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
| TRequest | The type of the request.  | 
      
Send<TResponse, TRequest>(HttpClientProxy, CancellationToken, String, HttpMethod, String, TRequest, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse, TRequest>(this HttpClientProxy httpClientProxy, CancellationToken cancellationToken, string uri, HttpMethod method, string requestContentType, TRequest dataToSend, string acceptType)
    where TResponse : class where TRequest : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | uri | The URI.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | requestContentType | Type of the request content.  | 
      
| TRequest | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
| TRequest | The type of the request.  | 
      
Send<TResponse, TRequest>(IRelations, HttpClientProxy, String, HttpMethod, String, TRequest, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse, TRequest>(this IRelations relations, HttpClientProxy httpClientProxy, string relationName, HttpMethod method, string requestContentType, TRequest dataToSend, string acceptType)
    where TResponse : class where TRequest : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | requestContentType | Type of the request content.  | 
      
| TRequest | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
| TRequest | The type of the request.  | 
      
Send<TResponse, TRequest>(IRelations, HttpClientProxy, CancellationToken, String, HttpMethod, String, TRequest, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse, TRequest>(this IRelations relations, HttpClientProxy httpClientProxy, CancellationToken cancellationToken, string relationName, HttpMethod method, string requestContentType, TRequest dataToSend, string acceptType)
    where TResponse : class where TRequest : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelations | relations | The relations.  | 
      
| HttpClientProxy | httpClientProxy | The HTTP client proxy.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | requestContentType | Type of the request content.  | 
      
| TRequest | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
| TRequest | The type of the request.  | 
      
Send<TResponse, TRequest>(IRelationsWithProxy, String, HttpMethod, String, TRequest, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse, TRequest>(this IRelationsWithProxy relations, string relationName, HttpMethod method, string requestContentType, TRequest dataToSend, string acceptType)
    where TResponse : class where TRequest : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | requestContentType | Type of the request content.  | 
      
| TRequest | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
| TRequest | The type of the request.  | 
      
Send<TResponse, TRequest>(IRelationsWithProxy, CancellationToken, String, HttpMethod, String, TRequest, String)
Sends a message to the specified HTTP client.
Declaration
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse, TRequest>(this IRelationsWithProxy relations, CancellationToken cancellationToken, string relationName, HttpMethod method, string requestContentType, TRequest dataToSend, string acceptType)
    where TResponse : class where TRequest : class
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRelationsWithProxy | relations | The relations.  | 
      
| System.Threading.CancellationToken | cancellationToken | The cancellation token.  | 
      
| System.String | relationName | Name of the relation.  | 
      
| System.Net.Http.HttpMethod | method | The method.  | 
      
| System.String | requestContentType | Type of the request content.  | 
      
| TRequest | dataToSend | The data to send.  | 
      
| System.String | acceptType | Type of the accept.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<TResponse>> | A task executing the request and returning the response.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResponse | The type of the response.  | 
      
| TRequest | The type of the request.  |