Show / Hide Table of Contents

Class LineManager

The LineManager keeps track of the lines in use.

Inheritance
object
LineManager
Implements
ILineManager
IDisposable
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 class LineManager : ILineManager, IDisposable

Constructors

| Edit this page View Source

LineManager(ILoggerFactory, VoiceProperties, IIvrPlugin, ITextToSpeechFactory)

Declaration
public LineManager(ILoggerFactory loggerFactory, VoiceProperties voiceProperties, IIvrPlugin ivrPlugin, ITextToSpeechFactory textToSpeechFactory = null)
Parameters
Type Name Description
ILoggerFactory loggerFactory
VoiceProperties voiceProperties
IIvrPlugin ivrPlugin
ITextToSpeechFactory textToSpeechFactory

Properties

| Edit this page View Source

VoiceProperties

Returns the voice properties definition.

Declaration
public VoiceProperties VoiceProperties { get; }
Property Value
Type Description
VoiceProperties

Methods

| Edit this page View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Edit this page View Source

GetLine()

Gets an available line. With SipSorcery, there is no need to specify a line number however, the line manager still uses them internally to manage them.

Declaration
public IIvrLine GetLine()
Returns
Type Description
IIvrLine

A class that represents the phone line

| Edit this page View Source

GetLine(int)

Gets the line class that will do the line manipulation.

Declaration
public IIvrLine GetLine(int lineNumber)
Parameters
Type Name Description
int lineNumber

The line number to connect to starting at 1

Returns
Type Description
IIvrLine

A class that represents the phone line

| Edit this page View Source

ReleaseAll()

Releases all the voice lines.

Declaration
public void ReleaseAll()
| Edit this page View Source

ReleaseLine(int)

Releases a voice line and removes it from the list of used lines.

Declaration
public void ReleaseLine(int lineNumber)
Parameters
Type Name Description
int lineNumber

The line number to release

Implements

ILineManager
IDisposable

Extension Methods

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