示例#1
0
        /// <summary>
        /// Punto de entrada principal para la aplicación.
        /// </summary>
        static void Main()
        {
            //ServiceBase [] ServicesToRun;
            ClienteClioTest servicioCliente = new ClienteClioTest();

            //ServicesToRun = new ServiceBase[]{servicioCliente};


            AsynchronousSocketListenerService.setClienteClioService(servicioCliente);
            //  Thread workerThread = new Thread();
            ThreadStart param        = delegate { ServiceBase.Run(servicioCliente); };
            Thread      workerThread = new Thread(param);

            workerThread.Start();

            while (!workerThread.IsAlive)
            {
                ;
            }


            int port = 11001;

            AsynchronousSocketListenerService.StartListening(port);

            //   AsynchronousSocketListener.servicioCliente
        }
示例#2
0
        /// <summary>
        /// Punto de entrada principal para la aplicación.
        /// </summary>
        static void Main()
        {
            //ServiceBase [] ServicesToRun;
            ClienteClioTest servicioCliente=new ClienteClioTest();
            //ServicesToRun = new ServiceBase[]{servicioCliente};

            AsynchronousSocketListenerService.setClienteClioService(servicioCliente);
              //  Thread workerThread = new Thread();
            ThreadStart param = delegate { ServiceBase.Run(servicioCliente); };
            Thread workerThread = new Thread(param);
            workerThread.Start();

            while (!workerThread.IsAlive);

            int port = 11001;
             AsynchronousSocketListenerService.StartListening(port);

              //   AsynchronousSocketListener.servicioCliente
        }
示例#3
0
 public static void setClienteClioService(ClienteClioTest obj)
 {
     cliente = obj;
 }