Click or drag to resize

RestClientBaseInvokeInternalTBody, TResult Method

Invokes the request. Implementations of RestClientBase must provide the implementation of InvokeInternalTBody, TResult(String, String, String, WebHeaderCollection, WebHeaderCollection, TBody, NameValueCollection).

Namespace: SanteDB.Core.Http
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
protected abstract TResult InvokeInternal<TBody, TResult>(
	string method,
	string url,
	string contentType,
	WebHeaderCollection requestHeaders,
	out WebHeaderCollection responseHeaders,
	TBody body,
	NameValueCollection query
)

Parameters

method  String
The method to invoke on the server
url  String
The resource URL to be invoked
contentType  String
The content/type of body
requestHeaders  WebHeaderCollection
Additional request headers to be sent to the server
responseHeaders  WebHeaderCollection
Response headers from the server
body  TBody
The body / contents to be submitted to the server. If this is default(TBody), no body is sent to the server.
query  NameValueCollection
The query to be affixed to the URL

Type Parameters

TBody
The type of body
TResult
The expected response (response hint) from the server

Return Value

TResult
The response from the server
See Also