Class PortManagerFacade
- Namespace
- SWConfigDataClientLib.Proxies.PortManager
- Assembly
- IpPbxCDSClientLib.dll
Facade class for PortManager like Gateway and LinkManager. The PortManagerFacade contains a trunk view including all relevant sub configuration items.
public class PortManagerFacade : PortManagerFacadeBase
- Inheritance
-
SWCFProxy<PortManagerFacadeClient, IPortManagerFacade>PortManagerFacade
- Inherited Members
Constructors
PortManagerFacade()
Creates instance of PortManagerFacade. (For use by Unmanaged Wrapper only)
public PortManagerFacade()
Remarks
Use the LibManager to create an instance of this class.
Properties
PoolMaxSize
depcreated
public static int PoolMaxSize { get; set; }
Property Value
PoolMinSize
depcreated
public static int PoolMinSize { get; set; }
Property Value
m_BaseUrl
protected override string m_BaseUrl { get; }
Property Value
Methods
AddPortWithPortID(PortPrimaryCollection, int)
Adds or replaces a Port with a given PortID from database
public PortEntry AddPortWithPortID(PortPrimaryCollection collection, int PortID)
Parameters
collection
PortPrimaryCollectionPortID
int
Returns
CheckVersion()
public void CheckVersion()
CreateClient(Binding, EndpointAddress)
protected override PortManagerFacadeClient CreateClient(Binding binding, EndpointAddress endpointAdrress)
Parameters
binding
BindingendpointAdrress
EndpointAddress
Returns
- PortManagerFacadeClient
Dispose()
<CDSClient.Enum.Dispose></CDSClient.Enum.Dispose>
public void Dispose()
FreeForReuse()
public override void FreeForReuse()
GetAllProviderProfiles()
Retrieves all Provider Profiles
public ProviderProfilePrimaryCollection GetAllProviderProfiles()
Returns
GetCurrentUserID()
public int GetCurrentUserID()
Returns
GetCurrentUserName()
public string GetCurrentUserName()
Returns
GetPortCollection(PortBundleType, string)
Retrieves a collection of PortEntries. The collection can not be used to write configuration items to database.
public PortPrimaryCollection GetPortCollection(PortBundleType portBundleType, string host)
Parameters
portBundleType
PortBundleTypeThe type of ports.
host
stringThe host of the port manager.
Returns
- PortPrimaryCollection
Collection of PortEntries. Collection can be empty but not null.
Examples
PortManagerFacade portManagerFacade = m_LibManager.GetPortManagerFacade();
PortPrimaryCollection portCollection = portManagerFacade.GetPortCollection(PortBundleType.SIP_GW | PortBundleType.SIP, "Athen");
foreach (PortEntry portEntry in portCollection)
{
System.Console.WriteLine("Trunk:\t" + portEntry.Name);
System.Console.WriteLine("\t" + portEntry.Description);
System.Console.WriteLine("\t" + portEntry.NonMatchingNumberCallingNumber);
}
portManagerFacade.FreeForReuse();
GetPortLoginID(int)
Get a LoginID to register the Trunk at the IpPbxServer. The id is only usable for one registration. For a new registration a new ID have to be requested.
public Guid GetPortLoginID(int iPortID)
Parameters
iPortID
intId of the trunk(Port).
Returns
- Guid
LoginID (Gudi)
GetPortParameterIntValue(int, string)
public int GetPortParameterIntValue(int iPortID, string strParamteterName)
Parameters
Returns
GetPortParameterStringValue(int, string)
public string GetPortParameterStringValue(int iPortID, string strParamteterName)
Parameters
Returns
GetPossibleIpPbxUserNames()
Returns all possible IpPbx User Names of the current user. Can be more than one if the current user is a windows user and multiple IppPbxUser are assigned to his windows account.
public SStringList GetPossibleIpPbxUserNames()
Returns
- SStringList
StringList
GetProviderProfileByProviderID(string)
Retrieves a Provider Profile
public ProviderProfilePrimaryCollection GetProviderProfileByProviderID(string ProviderID)
Parameters
ProviderID
stringThe ID of the Provider as it is defined int the ProviderFile
Returns
GetServerRequestTimeout(PortManagerFacadeClient)
protected override TimeSpan GetServerRequestTimeout(PortManagerFacadeClient client)
Parameters
client
PortManagerFacadeClient
Returns
GetSupportedClientVersions()
public SStringList GetSupportedClientVersions()
Returns
HasRole(BuildInRoles)
public bool HasRole(BuildInRoles eRole)
Parameters
eRole
BuildInRoles
Returns
PingService(PortManagerFacadeClient)
protected override void PingService(PortManagerFacadeClient client)
Parameters
client
PortManagerFacadeClient
PortParameterDelete(int, string)
public void PortParameterDelete(int iPortID, string strParamteterName)
Parameters
PortParameterExists(int, string)
public bool PortParameterExists(int iPortID, string strParamteterName)
Parameters
Returns
SetPortParameterIntValue(int, string, int)
public void SetPortParameterIntValue(int iPortID, string strParamteterName, int iValue)
Parameters
SetPortParameterIntValue(int, string, int, int)
public void SetPortParameterIntValue(int iPortID, string strParamteterName, int iValue, int iDefaultValue)
Parameters
SetPortParameterStringValue(int, string, string)
public void SetPortParameterStringValue(int iPortID, string strParamteterName, string strValue)
Parameters
SetPortParameterStringValue(int, string, string, string)
public void SetPortParameterStringValue(int iPortID, string strParamteterName, string strValue, string strDefaultValue)
Parameters
WriteBoardConfiguation(string, GatewayBoardConfig)
public void WriteBoardConfiguation(string GatewayHostName, GatewayBoardConfig BoardConfig)
Parameters
GatewayHostName
stringBoardConfig
GatewayBoardConfig