| IWikiClientInvokeAsyncT Method |
This is preliminary documentation and is subject to change.
Performs API invocation on the specified endpoint and gets parsed result.
Namespace: WikiClientLibrary.ClientAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax Task<T> InvokeAsync<T>(
string endPointUrl,
WikiRequestMessage request,
IWikiResponseMessageParser<T> responseParser,
CancellationToken cancellationToken
)
Function InvokeAsync(Of T) (
endPointUrl As String,
request As WikiRequestMessage,
responseParser As IWikiResponseMessageParser(Of T),
cancellationToken As CancellationToken
) As Task(Of T)
Dim instance As IWikiClient
Dim endPointUrl As String
Dim request As WikiRequestMessage
Dim responseParser As IWikiResponseMessageParser(Of T)
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of T)
returnValue = instance.InvokeAsync(endPointUrl,
request, responseParser, cancellationToken)
generic<typename T>
Task<T>^ InvokeAsync(
String^ endPointUrl,
WikiRequestMessage^ request,
IWikiResponseMessageParser<T>^ responseParser,
CancellationToken cancellationToken
)
abstract InvokeAsync :
endPointUrl : string *
request : WikiRequestMessage *
responseParser : IWikiResponseMessageParser<'T> *
cancellationToken : CancellationToken -> Task<'T>
Parameters
- endPointUrl String
- The API endpoint URL.
- request WikiRequestMessage
- The request message.
- responseParser IWikiResponseMessageParserT
- The parser that checks and parses the API response into the desired CLR object.
- cancellationToken CancellationToken
- The cancellation token that will be checked prior to completing the returned task.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:WikiClientLibrary.Client.IWikiClient.InvokeAsync``1(System.String,WikiClientLibrary.Client.WikiRequestMessage,WikiClientLibrary.Client.IWikiResponseMessageParser{``0},System.Threading.CancellationToken)"]
Return Value
TaskTThe parsed response value. The actual object type depends on the
responseParser.
Exceptions Remarks
The implementation of this method involves
See Also