/////////////////////////////////////////////////////////////////////// public static void Main(string[] args) { // check the command line if (args.Length != 1) { Console.WriteLine( "usage\nbtnet_console.exe [path to btnet_service.exe.config file]"); Console.WriteLine( "example\nbtnet_console.exe btnet_service.exe.config"); return; } // Get the configuration settings bool verbose = true; POP3Main pop3 = new POP3Main(args[0], verbose); pop3.start(); Console.WriteLine("Hit enter to quit."); Console.Read(); pop3.stop(); }
/////////////////////////////////////////////////////////////////////// public static void Main(string[] args) { // check the command line if (args.Length != 1) { Console.WriteLine( "usage\nbtnet_console.exe [path to btnet_service.exe.config file]"); Console.WriteLine( "example\nbtnet_console.exe btnet_service.exe.config"); return; } // Get the configuration settings bool verbose = true; POP3Main pop3 = new POP3Main(args[0], verbose); pop3.start(); Console.WriteLine("Hit enter to quit."); Console.Read(); pop3.stop(); }
protected override void OnStop() { pop3.stop(); }