Click or drag to resize

IWikiClientInvokeAsyncT Method

This is preliminary documentation and is subject to change.

Performs API invocation on the specified endpoint and gets parsed result.

Namespace: WikiClientLibrary.Client
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntax
Task<T> InvokeAsync<T>(
	string endPointUrl,
	WikiRequestMessage request,
	IWikiResponseMessageParser<T> responseParser,
	CancellationToken cancellationToken
)

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

TaskT
The parsed response value. The actual object type depends on the responseParser.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither endPointUrl, request, or responseParser is null.
ExceptionOther IWikiResponseMessageParserT-specified exceptions.
Remarks
The implementation of this method involves
See Also