| ScribuntoConsoleResetAsync(String, String, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Resets the current Lua evaluation session with the specified module content and module title.
Namespace: WikiClientLibrary.ScribuntoAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task ResetAsync(
string? moduleContent,
string? moduleTitle,
CancellationToken cancellationToken
)
Public Function ResetAsync (
moduleContent As String,
moduleTitle As String,
cancellationToken As CancellationToken
) As Task
Dim instance As ScribuntoConsole
Dim moduleContent As String
Dim moduleTitle As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = instance.ResetAsync(moduleContent,
moduleTitle, cancellationToken)
public:
Task^ ResetAsync(
String^ moduleContent,
String^ moduleTitle,
CancellationToken cancellationToken
)
member ResetAsync :
moduleContent : string *
moduleTitle : string *
cancellationToken : CancellationToken -> Task
Parameters
- moduleContent String
- Lua module content. The return value of the expression will be the return value of the module.
- moduleTitle String
- Title of the Lua module, or null to use a dummy module name. To properly evaluate Lua modules, the title should start with Module: namespace prefix.
- cancellationToken CancellationToken
- A token used to cancel the operation.
Return Value
TaskExceptions Remarks Upon reset of the console, this client library will attempt to evaluate =_VERSION and validates
whether server can return any value (even if it's nil). This is the sanity test.
This operation usually does not change SessionId, if it's already has a valid value.
To create a new Lua evaluation session with a different ,
create a new instance.
See Also