NBloodServerSupervisor/Supervisor/Program.cs

28 lines
582 B
C#
Raw Normal View History

2020-01-23 21:03:54 +01:00
using System;
using System.Threading;
using Model;
namespace Supervisor
{
class Program
{
public static readonly State State = new State();
public static void Main(string[] args)
{
NBloodServerListener.StartListening();
WebApiListener.StartListening();
if (args.Length > 0)
PublicServerManager.Start(args[0]);
PrivateServerManager.Start();
while (true)
{
Thread.Sleep(TimeSpan.FromSeconds(1));
}
}
}
}