///////////////////////////////////////////////////////////////////////
        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();

        }
Beispiel #2
0
        ///////////////////////////////////////////////////////////////////////
        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();
        }
Beispiel #3
0
 protected override void OnStop()
 {
     pop3.stop();
 }