| 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
)
Protected MustOverride Function InvokeInternal(Of TBody, TResult) (
method As String,
url As String,
contentType As String,
requestHeaders As WebHeaderCollection,
<OutAttribute> ByRef responseHeaders As WebHeaderCollection,
body As TBody,
query As NameValueCollection
) As TResult
protected:
generic<typename TBody, typename TResult>
virtual TResult InvokeInternal(
String^ method,
String^ url,
String^ contentType,
WebHeaderCollection^ requestHeaders,
[OutAttribute] WebHeaderCollection^% responseHeaders,
TBody body,
NameValueCollection^ query
) abstract
abstract InvokeInternal :
method : string *
url : string *
contentType : string *
requestHeaders : WebHeaderCollection *
responseHeaders : WebHeaderCollection byref *
body : 'TBody *
query : NameValueCollection -> 'TResult
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:
TResultThe response from the server
See Also