Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            CommandReceiver server = new CommandReceiver();

            server.Open();
            Console.WriteLine($"Started: port {server.Port}");

            Console.ReadKey();
            server.Close();
            Console.WriteLine("Closed.");
        }
Ejemplo n.º 2
0
 /// System Menu
 /// Close the Window.
 private void OnCloseButton(object sender, RoutedEventArgs e)
 {
     this.dataProvider.Quit = true;
     commandReceiver.Close();
     this.Close();
 }