예제 #1
0
        static void Main(string[] args)
        {
            var chatService = new ChatServiceImpl();
            var host        = new ServiceHost(chatService);

            host.Open();

            Console.WriteLine("Server is running");
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();

            host.Close();
        }
예제 #2
0
        static void Main(string[] args)
        {
            var chatService = new ChatServiceImpl();
            var host        = new ServiceHost(chatService);

            host.Open();

            Console.WriteLine("El servidor esta corriendo exitosamente");
            Console.WriteLine("Presione cualquier tecla para salir...");
            Console.ReadKey();

            host.Close();
        }
예제 #3
0
        static void Main(string[] args)
        {
            var chatService = new ChatServiceImpl();
            var host = new ServiceHost(chatService);

            host.Open();

            Console.WriteLine("Server is running");
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();

            host.Close();
        }