forked from Moux23333/FreeSR
25 lines
No EOL
686 B
C#
25 lines
No EOL
686 B
C#
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();
|
|
}
|
|
}
|
|
} |