Scribunto |
This is preliminary documentation and is subject to change.
The ScribuntoConsole type exposes the following members.
Name | Description | |
---|---|---|
ScribuntoConsole | Creates a new Scribunto Lua evaluation console. |
Name | Description | |
---|---|---|
ModuleTitle | Gets the currently used full module title, including the Module: namespace prefix. The title does not necessarily exist on the MediaWiki site. | |
SessionId | Gets the current evaluation session ID. | |
SessionMaxSize | Gets the maximum allowed server memory consumption of the current evaluation session. | |
SessionSize | Gets the server memory consumption of the current evaluation session. | |
Site |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
EvaluateAsync(String) | Evaluates the specified Lua expression in the console. | |
EvaluateAsync(String, CancellationToken) | Evaluates the specified Lua expression in the console. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ResetAsync | Resets the current Lua evaluation session with empty module content and dummy module title. | |
ResetAsync(String) | Resets the current Lua evaluation session with the specified module content and dummy module title. | |
ResetAsync(String, CancellationToken) | Resets the current Lua evaluation session with the specified module content and dummy module title. | |
ResetAsync(String, String, CancellationToken) | Resets the current Lua evaluation session with the specified module content and module title. | |
ToString | Returns a string that represents the current object. (Inherited from Object) |
An instance of this class is equivalent to the "Debug console" shown in the Scribunto Lua module editor page.
The MediaWiki site need to have Scribunto extension installed to support this feature.
You need to call ResetAsync(String, String, CancellationToken) or its overload before starting any evaluation operations.