This repository has been archived on 2024-03-29. You can view files and clone it, but cannot push or open issues or pull requests.
FreeSR/FreeSR.Tool.Proxy/Program.cs

25 lines
686 B
C#
Raw Normal View History

2024-01-27 13:06:07 +00:00
namespace FreeSR.Tool.Proxy
{
internal static class Program
{
private const string Title = "FreeSR Proxy";
private static ProxyService s_proxyService;
private static EventHandler s_processExitHandler = new EventHandler(OnProcessExit);
private static void Main(string[] args)
{
Console.Title = Title;
s_proxyService = new ProxyService("127.0.0.1", 8888);
AppDomain.CurrentDomain.ProcessExit += s_processExitHandler;
Thread.Sleep(-1);
}
private static void OnProcessExit(object sender, EventArgs args)
{
s_proxyService.Shutdown();
}
}
}