コード例 #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");
      }
コード例 #2
0
 public void Callback(ConnectionState state)
 {
    MessageBox.Show(state.Address);
 }