Interface IIvrLine
This interface exposes the main methods used to control the selected plugin.
Inherited Members
Namespace: ivrToolkit .Core.Interfaces
Assembly: ivrToolkit.Core.dll
Syntax
public interface IIvrLine : IIvrBaseLine, IDisposable, IPromptMethods, IPlayMethods
Properties
| Edit this page View SourceStatus
The Status of the line.
Declaration
LineStatusTypes Status { get; }
Property Value
Type | Description |
---|---|
Line |
TextToSpeechCacheFactory
Gets the Text To Speech generator being used.
Declaration
ITextToSpeechCacheFactory TextToSpeechCacheFactory { get; }
Property Value
Type | Description |
---|---|
IText |
Methods
| Edit this page View SourceCheckDispose()
Use this within long computational methods to check if the line has hung-up or stopped.
Declaration
void CheckDispose()
StartIncomingListener(Func<IIvrLine, CancellationToken, Task>, CancellationToken)
Starts an incoming call listener with a callback function.
Declaration
void StartIncomingListener(Func<IIvrLine, CancellationToken, Task> callback, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Func<IIvr |
callback | The function to execute when a call is received. |
Cancellation |
cancellationToken | A token to monitor for cancellation requests. |