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.2+447d1d590e6726b7881f750a0a0e42908f3e417e
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