| WikiaSiteInvokeWikiaAjaxAsync(WikiRequestMessage, 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<JsonNode> InvokeWikiaAjaxAsync(
WikiRequestMessage request,
CancellationToken cancellationToken
)
Public Function InvokeWikiaAjaxAsync (
request As WikiRequestMessage,
cancellationToken As CancellationToken
) As Task(Of JsonNode)
Dim instance As WikiaSite
Dim request As WikiRequestMessage
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of JsonNode)
returnValue = instance.InvokeWikiaAjaxAsync(request,
cancellationToken)
public:
Task<JsonNode^>^ InvokeWikiaAjaxAsync(
WikiRequestMessage^ request,
CancellationToken cancellationToken
)
member InvokeWikiaAjaxAsync :
request : WikiRequestMessage *
cancellationToken : CancellationToken -> Task<JsonNode>
Parameters
- request WikiRequestMessage
- The request message.
- cancellationToken CancellationToken
- The token used to cancel the operation.
Return Value
TaskJsonNodeThe parsed JSON root of response.
Exceptions Remarks This overload uses WikiaJsonResponseParser to parse the response.
This method will automatically add action=ajax field in the request.
See Also