mirror of
https://github.com/CommonLoon102/NBloodServerSupervisor.git
synced 2024-12-23 11:12:47 +01:00
28 lines
582 B
C#
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));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|