C# Class SIPSorcery.SIP.App.SIPDomainManager

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

Méthodes publiques

Méthode 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

Méthode Description
GetSIPDomain ( string host, bool wildcardOk ) : SIPDomain
LoadSIPDomains ( ) : void

Method Details

AddAlias() public méthode

public AddAlias ( string domain, string alias ) : void
domain string
alias string
Résultat void

AddDomain() public méthode

public AddDomain ( SIPDomain sipDomain ) : void
sipDomain SIPDomain
Résultat void

Get() public méthode

public Get ( bool>.Expression whereClause, int offset, int count ) : List
whereClause bool>.Expression
offset int
count int
Résultat List

GetDomain() public méthode

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
Résultat string

HasDomain() public méthode

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
Résultat bool

RemoveAlias() public méthode

public RemoveAlias ( string alias ) : void
alias string
Résultat void

RemoveDomain() public méthode

public RemoveDomain ( SIPDomain sipDomain ) : void
sipDomain SIPDomain
Résultat void

SIPDomainManager() public méthode

public SIPDomainManager ( StorageTypes storageType, string storageConnectionStr ) : NUnit.Framework
storageType StorageTypes
storageConnectionStr string
Résultat NUnit.Framework