C# Class SIPSorcery.SIP.App.SIPDomainManager

This class maintains a list of domains that are being maintained by this process.
Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
AddAlias ( string domain, string alias ) : void
AddDomain ( SIPDomain sipDomain ) : void
Get ( bool>.Expression whereClause, int offset, int count ) : List
GetDomain ( string host, bool wilcardOk ) : string

Checks whether there the supplied hostname represents a serviced domain or alias.

HasDomain ( string host, bool wildcardOk ) : bool

Checks whether a host name is in the list of supported domains and aliases.

RemoveAlias ( string alias ) : void
RemoveDomain ( SIPDomain sipDomain ) : void
SIPDomainManager ( StorageTypes storageType, string storageConnectionStr ) : NUnit.Framework

Private Methods

Method Description
GetSIPDomain ( string host, bool wildcardOk ) : SIPDomain
LoadSIPDomains ( ) : void

Method Details

AddAlias() public method

public AddAlias ( string domain, string alias ) : void
domain string
alias string
return void

AddDomain() public method

public AddDomain ( SIPDomain sipDomain ) : void
sipDomain SIPDomain
return void

Get() public method

public Get ( bool>.Expression whereClause, int offset, int count ) : List
whereClause bool>.Expression
offset int
count int
return List

GetDomain() public method

Checks whether there the supplied hostname represents a serviced domain or alias.
public GetDomain ( string host, bool wilcardOk ) : string
host string The hostname to check for a serviced domain for.
wilcardOk bool
return string

HasDomain() public method

Checks whether a host name is in the list of supported domains and aliases.
public HasDomain ( string host, bool wildcardOk ) : bool
host string
wildcardOk bool
return bool

RemoveAlias() public method

public RemoveAlias ( string alias ) : void
alias string
return void

RemoveDomain() public method

public RemoveDomain ( SIPDomain sipDomain ) : void
sipDomain SIPDomain
return void

SIPDomainManager() public method

public SIPDomainManager ( StorageTypes storageType, string storageConnectionStr ) : NUnit.Framework
storageType StorageTypes
storageConnectionStr string
return NUnit.Framework