NBloodServerSupervisor/Supervisor/Program.cs
2020-01-23 21:03:54 +01:00

28 lines
582 B
C#

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));
}
}
}
}