| 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
)
Public Function Invoke(Of TBody, TResult) (
method As String,
url As String,
contentType As String,
body As TBody,
query As NameValueCollection
) As TResult
public:
generic<typename TBody, typename TResult>
virtual TResult Invoke(
String^ method,
String^ url,
String^ contentType,
TBody body,
NameValueCollection^ query
) sealed
abstract Invoke :
method : string *
url : string *
contentType : string *
body : 'TBody *
query : NameValueCollection -> 'TResult
override Invoke :
method : string *
url : string *
contentType : string *
body : 'TBody *
query : NameValueCollection -> 'TResult
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:
TResultThe server response
Implements
IRestClientInvokeTBody, TResult(String, String, String, TBody, NameValueCollection)See Also