Class BaseScript
An implementation of the IScript interface that implements the line property to save you some time.
Implements
Inherited Members
Namespace: ivrToolkit.Core
Assembly: ivrToolkit.Core.dll
Syntax
public abstract class BaseScript : IScript
Constructors
| Edit this page View SourceBaseScript(ILoggerFactory, VoiceProperties, IIvrLine)
Declaration
protected BaseScript(ILoggerFactory loggerFactory, VoiceProperties voiceProperties, IIvrLine line)
Parameters
| Type | Name | Description |
|---|---|---|
| ILoggerFactory | loggerFactory | |
| VoiceProperties | voiceProperties | |
| IIvrLine | line |
Properties
| Edit this page View SourceDescription
Gets the description of the script block.
Declaration
public abstract string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
Line
Gets the voice line used by the script block
Declaration
public IIvrLine Line { get; }
Property Value
| Type | Description |
|---|---|
| IIvrLine |
Methods
| Edit this page View SourceExecute()
Executes the script block
Declaration
public virtual IScript Execute()
Returns
| Type | Description |
|---|---|
| IScript | The next script block to run or null indicating the scripts are done |
ExecuteAsync(CancellationToken)
Asynchronously executes the script block
Declaration
public virtual Task<IScript> ExecuteAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<IScript> | The next script block to run or null indicating the scripts are done |