Exemple #1
0
 protected override void OnStart(string[] args)
 {
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
     server = new CurrencyStore.Communication.Server.SocketServer();
     server.Start();
 }
Exemple #2
0
        static void Main(string[] args)
        {
            //SimplySocket();
            //return;
            byte[] val = new byte[] { 0x58, 0x59, 0x5A, 0x41 };

            var i = val.GetString(0, 4);

            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

            server = new CurrencyStore.Communication.Server.SocketServer();
            server.Start();
            Thread.Sleep(1000);
            var th = new Thread(new ThreadStart(DrawDisplay));
            th.Start();
            Console.ReadLine();
            exit = true;
            server.Stop();
        }