| WikiClientInvokeAsyncT 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 public Task<T> InvokeAsync<T>(
string endPointUrl,
WikiRequestMessage message,
IWikiResponseMessageParser<T> responseParser,
CancellationToken cancellationToken
)
Public Function InvokeAsync(Of T) (
endPointUrl As String,
message As WikiRequestMessage,
responseParser As IWikiResponseMessageParser(Of T),
cancellationToken As CancellationToken
) As Task(Of T)
Dim instance As WikiClient
Dim endPointUrl As String
Dim message As WikiRequestMessage
Dim responseParser As IWikiResponseMessageParser(Of T)
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of T)
returnValue = instance.InvokeAsync(endPointUrl,
message, responseParser, cancellationToken)
public:
generic<typename T>
virtual Task<T>^ InvokeAsync(
String^ endPointUrl,
WikiRequestMessage^ message,
IWikiResponseMessageParser<T>^ responseParser,
CancellationToken cancellationToken
) sealed
abstract InvokeAsync :
endPointUrl : string *
message : WikiRequestMessage *
responseParser : IWikiResponseMessageParser<'T> *
cancellationToken : CancellationToken -> Task<'T>
override InvokeAsync :
endPointUrl : string *
message : WikiRequestMessage *
responseParser : IWikiResponseMessageParser<'T> *
cancellationToken : CancellationToken -> Task<'T>
Parameters
- endPointUrl String
- The API endpoint URL.
- message WikiRequestMessage
[Missing <param name="message"/> documentation for "M:WikiClientLibrary.Client.WikiClient.InvokeAsync``1(System.String,WikiClientLibrary.Client.WikiRequestMessage,WikiClientLibrary.Client.IWikiResponseMessageParser{``0},System.Threading.CancellationToken)"]
- 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.WikiClient.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.
Implements
IWikiClientInvokeAsyncT(String, WikiRequestMessage, IWikiResponseMessageParserT, CancellationToken)Exceptions Remarks
The implementation of this method involves
See Also