Click or drag to resize

RestClientBaseInvokeTBody, TResult Method (String, String, String, TBody, NameValueCollection)

Invoke the specified method against the server

Namespace:  SanteDB.Core.Http
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
public TResult Invoke<TBody, TResult>(
	string method,
	string url,
	string contentType,
	TBody body,
	NameValueCollection query
)

Parameters

method
Type: SystemString
The HTTP method to be executed
url
Type: SystemString
The resource URL to be executed against
contentType
Type: SystemString
The content/type of body
body
Type: TBody
The contents of the request to send to the server
query
Type: System.Collections.SpecializedNameValueCollection
The query to append to the URL

Type Parameters

TBody
The type of body
TResult
The expected response type from the server

Return Value

Type: TResult
The server response

Implements

IRestClientInvokeTBody, TResult(String, String, String, TBody, NameValueCollection)
See Also