public void Initialize(IConfigSource source, IRegistryCore registry) { m_source = source; m_config = source.Configs["AuroraInterWorldConnectors"]; if (m_config != null) { m_Enabled = m_config.GetBoolean("Enabled", false); m_allowUntrustedConnections = m_config.GetBoolean("AllowUntrustedConnections", m_allowUntrustedConnections); m_untrustedConnectionsDefaultTrust = (ThreatLevel) Enum.Parse(typeof(ThreatLevel), m_config.GetString("UntrustedConnectionsDefaultTrust", m_untrustedConnectionsDefaultTrust.ToString())); registry.RegisterModuleInterface(this); registry.StackModuleInterface <ICommunicationService>(this); m_registry = registry; } }
public void Initialize(IConfigSource source, IRegistryCore registry) { m_source = source; m_config = source.Configs["AuroraInterWorldConnectors"]; if (m_config != null) { m_Enabled = m_config.GetBoolean("Enabled", false); m_allowUntrustedConnections = m_config.GetBoolean("AllowUntrustedConnections", m_allowUntrustedConnections); m_untrustedConnectionsDefaultTrust = (ThreatLevel)Enum.Parse(typeof(ThreatLevel), m_config.GetString("UntrustedConnectionsDefaultTrust", m_untrustedConnectionsDefaultTrust.ToString())); registry.RegisterModuleInterface<InterWorldCommunications>(this); registry.StackModuleInterface<ICommunicationService> (this); m_registry = registry; } }