Share via


Exercise 7: Verification

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

  1. Right-click the ChatProxy project, and click Set as StartUp Project.
  2. Press F5 to start ChatProxy console in the debugger.

    Figure 25

    ChatProxy Service running

    Note:
    Windows Firewall may prompt you to allow the Proxy and/or Chat client access to use the network. It is safe to allow this.

  3. Switch back to Visual Studio solution Explorer and start two instances of the DiscoveryChat application by right-clicking the DiscoveryChat project, pointing to Debug, and clicking Start new instance.
  4. Switch to one of the instances of the DiscoveryChat application and setup the chat as follows:
    1. User Name: Fred
    2. Click Sign in
  5. Switch to the other DiscoveryChat instance and setup the chat as follows:
    1. User Name: Wilma
    2. Click Sign in
  6. When Wilma signed in, her window found Fred from the managed discovery proxy. Fred's chat window should detect the online announcement from Wilma's window and automatically add her.

    Figure 26

    Managed discovery in action

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

    Figure 27

    ChatProxy Service in action

  9. Press SHIFT+F5 (C#) or CTRL+ALT+BREAK (Visual Basic) to stop debugging.

Next Step

Exercise 8: Protocol Bridging