/// <summary> /// Starts a specific server /// </summary> /// <param name="cfg">The configuration of the specific server to run</param> protected override void StartServer(ServerConfiguration cfg) { if (cfg.Name == ServerName) { Server = new GPCMServer(cfg.Name, databaseDriver, IPAddress.Parse(cfg.Hostname), cfg.Port); LogWriter.Log.Write(LogLevel.Info, "|{0,-11}|{1,-14}|{2,-6}|", cfg.Name, cfg.Hostname, cfg.Port); } }
/// <summary> /// Starts a specific server /// </summary> /// <param name="cfg">The configuration of the specific server to run</param> protected override void StartServer(ServerConfig cfg) { if (cfg.Name == ServerName) { Server = new GPCMServer(IPAddress.Parse(cfg.ListeningAddress), cfg.ListeningPort).Start(); Console.WriteLine( StringExtensions.FormatServerTableContext(cfg.Name, cfg.ListeningAddress, cfg.ListeningPort.ToString())); } }