protected override void DoConfigure(IConfigSectionNode node) { base.DoConfigure(node); if (node == null || !node.Exists) { return; } var nsec = node[CONFIG_CLIENT_SECURITY_SECTION]; if (nsec.Exists) { m_ClientSecurity = FactoryUtils.MakeAndConfigureDirectedComponent <ISecurityManagerImplementation>(this, nsec, typeof(ConfigSecurityManager)); if (m_ClientSecurity is Daemon daemon) { daemon.Start(); } } var nring = node[CONFIG_TOKEN_RING_SECTION]; if (nring.Exists) { m_TokenRing = FactoryUtils.MakeAndConfigureDirectedComponent <ITokenRingImplementation>(this, nring); if (m_TokenRing is Daemon daemon) { daemon.Start(); } } }
protected override bool DoApplicationAfterInit() { //if not configured, then shortcut to App.SecurityManager if (m_ClientSecurity == null) { m_ClientSecurity = (ISecurityManagerImplementation)App.SecurityManager; } //if not configured, then make default ClientTokenRing if (m_TokenRing == null) { m_TokenRing = new ClientTokenRing(this); } return(base.DoApplicationAfterInit()); }