Interface IScriptManager
A collection of common methods used by the implementations.
Namespace: ivrToolkit.Core.Interfaces
Assembly: ivrToolkit.Core.dll
Syntax
public interface IScriptManager
Properties
| Edit this page View SourceNextScript
The next script block to be executed.
Declaration
IScript NextScript { get; set; }
Property Value
Type | Description |
---|---|
IScript |
Methods
| Edit this page View SourceExecute()
Executes the next script block. Used with HasNext()
Declaration
void Execute()
ExecuteAsync(CancellationToken)
Asynchronously executes the next script block. Used with HasNext()
Declaration
Task ExecuteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
ExecuteScriptAsync(CancellationToken)
Asynchronously executes all the script blocks.
Declaration
Task ExecuteScriptAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
HasNext()
Checks to see if there is another script block to execute.
Declaration
bool HasNext()
Returns
Type | Description |
---|---|
bool | Returns the next script block to execute or null if there are no more. |