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