NoSugarNet/Sample/NoSugarNet.ServerCli/Program.cs

24 lines
551 B
C#
Raw Normal View History

2024-01-22 11:58:24 +08:00
using ServerCore.Manager;
namespace NoSugarNet.ServerCli
{
internal class Program
{
static void Main(string[] args)
{
2024-01-23 17:06:47 +08:00
Console.ForegroundColor = ConsoleColor.Green;
2024-01-22 15:08:43 +08:00
if (!Config.LoadConfig())
{
Console.WriteLine("配置文件错误");
Console.ReadLine();
return;
}
ServerManager.InitServer(1000,Config.Cfgs);
2024-01-22 11:58:24 +08:00
while (true)
{
Console.ReadLine();
}
}
}
}