mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
22 lines
525 B
C#
22 lines
525 B
C#
using HISP.Server;
|
|
using System;
|
|
|
|
namespace HISP
|
|
{
|
|
public static class Program
|
|
{
|
|
public static bool ShuttingDown = false;
|
|
public static void OnShutdown()
|
|
{
|
|
ShuttingDown = true;
|
|
}
|
|
public static void Main(string[] args)
|
|
{
|
|
Logger.SetCallback(Console.WriteLine);
|
|
Entry.SetShutdownCallback(OnShutdown);
|
|
Entry.Start();
|
|
|
|
while (!ShuttingDown) { /* Allow asyncronous operations to happen. */ };
|
|
}
|
|
}
|
|
}
|