Esempio n. 1
0
      public MainWindow()
      {
         InitializeComponent();

         EventHub.Events.Subscribe<ConnectionState>(Callback);

         ConnectionState state = new ConnectionState("127.0.0.10", 8080);

         EventHub.Events.Publish<ConnectionState>(state);

         MessageBox.Show("Finished");
      }
Esempio n. 2
0
 public void Callback(ConnectionState state)
 {
    MessageBox.Show(state.Address);
 }