public Server(Config config) { m_config = config; if (m_config.Server.CommandPoint.Port == m_config.Server.DataPort.Port) { throw new ArgumentException("Server Command and Data ports cannot be the same", nameof(config)); } if (m_config.Forward.HasValue && m_config.Forward.Value.CommandPoint.Port == m_config.Forward.Value.DataPort.Port) { throw new ArgumentException("Forward Command and Data ports cannot be the same", nameof(config)); } m_driverHandler = new DriverHandler(); m_driverDB = new DriverDB(m_driverHandler); }
internal DriverDB(DriverHandler handler) { m_handler = handler; }