| WikiaSiteInvokeWikiaAjaxAsyncT(WikiRequestMessage, IWikiResponseMessageParserT, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Invokes index.php call with action=ajax query.
Namespace: WikiClientLibrary.Wikia.SitesAssembly: WikiClientLibrary.Wikia (in WikiClientLibrary.Wikia.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<T> InvokeWikiaAjaxAsync<T>(
WikiRequestMessage request,
IWikiResponseMessageParser<T> responseParser,
CancellationToken cancellationToken
)
Public Function InvokeWikiaAjaxAsync(Of T) (
request As WikiRequestMessage,
responseParser As IWikiResponseMessageParser(Of T),
cancellationToken As CancellationToken
) As Task(Of T)
Dim instance As WikiaSite
Dim request As WikiRequestMessage
Dim responseParser As IWikiResponseMessageParser(Of T)
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of T)
returnValue = instance.InvokeWikiaAjaxAsync(request,
responseParser, cancellationToken)
public:
generic<typename T>
Task<T>^ InvokeWikiaAjaxAsync(
WikiRequestMessage^ request,
IWikiResponseMessageParser<T>^ responseParser,
CancellationToken cancellationToken
)
member InvokeWikiaAjaxAsync :
request : WikiRequestMessage *
responseParser : IWikiResponseMessageParser<'T> *
cancellationToken : CancellationToken -> Task<'T>
Parameters
- request WikiRequestMessage
- The request message.
- responseParser IWikiResponseMessageParserT
- The parser used to parse the response.
- cancellationToken CancellationToken
- The token used to cancel the operation.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:WikiClientLibrary.Wikia.Sites.WikiaSite.InvokeWikiaAjaxAsync``1(WikiClientLibrary.Client.WikiRequestMessage,WikiClientLibrary.Client.IWikiResponseMessageParser{``0},System.Threading.CancellationToken)"]
Return Value
TaskTThe parsed JSON root of response.
Exceptions Remarks This method will automatically add action=ajax field in the request.
See Also