public ComDaClientNodeManager(IServerInternal server, string namespaceUri, ComDaClientConfiguration configuration, bool ownsTypeModel)
:
base(server, namespaceUri, ownsTypeModel)
{
SystemContext.SystemHandle = m_system = new ComDaClientManager();
SystemContext.NodeIdFactory = this;
// save the configuration for the node manager.
m_configuration = configuration;
// set the alias root.
AliasRoot = m_configuration.ServerName;
if (String.IsNullOrEmpty(AliasRoot))
{
AliasRoot = "DA";
}
// set the default parser if none provided.
if (configuration.ItemIdParser == null)
{
configuration.ItemIdParser = new ComItemIdParser();
}
// create the list of subscriptions.
m_subscriptionManagers = new Dictionary<string, SubscribeRequestManager>();
m_subscriptionManagers[String.Empty] = new SubscribeRequestManager(SystemContext, null, 1000);
m_monitoredItems = new Dictionary<uint, SubscribeRequestManager>();
}
#endregion