 | 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.HttpAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxprotected 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 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
TResultThe response from the server
See Also