Click or drag to resize

RestClientBaseInvokeInternalTBody, TResult Method

Implementation specific implementation of invoke

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

Parameters

method
Type: SystemString
The method to invoke on the server
url
Type: SystemString
The resource URL to be invoked
contentType
Type: SystemString
The content/type of body
requestHeaders
Type: System.NetWebHeaderCollection
Additional request headers to be sent to the server
responseHeaders
Type: System.NetWebHeaderCollection
Response headers from the server
body
Type: TBody
The body / contents to be submitted to the server
query
Type: System.Collections.SpecializedNameValueCollection
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

Type: TResult
The response from the server
See Also