Aura.Msgr.MsgrServer.Run C# (CSharp) Метод

Run() публичный Метод

public Run ( ) : void
Результат void
		public void Run()
		{
			if (_running)
				throw new Exception("Server is already running.");
			_running = true;

			CliUtil.WriteHeader("Msgr Server", ConsoleColor.DarkCyan);
			CliUtil.LoadingTitle();

			this.NavigateToRoot();

			// Conf
			this.LoadConf(this.Conf = new MsgrConf());

			// Database
			this.InitDatabase(this.Database = new MsgrDb(), this.Conf);

			// Localization
			this.LoadLocalization(this.Conf);

			// Initialization
			this.GuildManager.Initialize();

			// Start
			this.Server.Start(this.Conf.Msgr.Port);

			CliUtil.RunningTitle();

			var cmd = new ConsoleCommands();
			cmd.Wait();
		}
	}