MethodInvocationSendTResponse Method (IRelations, HttpMethod, HttpClient, String, String)DocuWare Platform .NET API
Sends a message to the specified HTTP client.

Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient (in DocuWare.RestClient.dll) Version: Version 6.6
Syntax

C#
public static Task<DeserializedHttpResponse<TResponse>> Send<TResponse>(
	this IRelations relations,
	HttpMethod method,
	HttpClient httpClient,
	string relationName,
	params string[] acceptType
)
where TResponse : class

Parameters

relations
Type: DocuWare.Services.Http.ClientIRelations
The relations.
method
Type: System.Net.HttpHttpMethod
The method.
httpClient
Type: System.Net.HttpHttpClient
The HTTP client.
relationName
Type: SystemString
Name of the relation.
acceptType
Type: SystemString
Type of the accept.

Type Parameters

TResponse
The type of the response.

Return Value

Type: TaskDeserializedHttpResponseTResponse
A task executing the request and returning the response.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRelations. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference