Show / Hide Table of Contents

Class BaseScript

An implementation of the IScript interface that implements the line property to save you some time.

Inheritance
object
BaseScript
Implements
IScript
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ivrToolkit.Core
Assembly: ivrToolkit.Core.dll
Syntax
public abstract class BaseScript : IScript

Constructors

| Edit this page View Source

BaseScript(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 Source

Description

Gets the description of the script block.

Declaration
public abstract string Description { get; }
Property Value
Type Description
string
| Edit this page View Source

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 Source

Execute()

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

| Edit this page View Source

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

Implements

IScript

Extension Methods

ValidationExtensions.ThrowIfNull<T>(T, string)
  • View Source
In this article
Back to top Generated by DocFX