Share via


Exercise 6: Verification

Now you will test the application to verify that the clients are able to detect the announcements.

  1. Press CTRL+F5 to start an instance of the DiscoveryChat application without debugging.
  2. Switch back to Visual Studio and press CTRL+F5 again to launch another instance of the DiscoveryChat application.
  3. Switch to one of the instances of DiscoveryChat and setup the chat as follows:

    1. User Name: Fred
    2. Click Sign in
    Note:
    Windows Firewall may prompt you to allow the Chat client access to use the network. It is safe to allow this.

  4. Switch to the other DiscoveryChat instance and setup the chat as follows:
    1. User Name: Wilma
    2. Click Sign in
  5. When Wilma signed in, Fred’s chat window should detect the online announcement and automatically add her to the list of available users.

    Figure 17

    Users are automatically discovered

  6. Verify that the offline announcement is working by clicking the Sign Out button on the Wilma's chat window. This should cause Fred's window to remove Wilma from the list of available users.
  7. Try signing in and out from both applications. Each application is aware of the online / offline announcements of the other.
  8. Close both instances of the DiscoveryChat application.

Next Step

Exercise 7: Discovery Proxy