Exercise 6: Verification
Now you will test the application to verify that the clients are able to detect the announcements.
- Press CTRL+F5 to start an instance of the DiscoveryChat application without debugging.
- Switch back to Visual Studio and press CTRL+F5 again to launch another instance of the DiscoveryChat application.
Switch to one of the instances of DiscoveryChat and setup the chat as follows:
- User Name: Fred
- Click Sign in
Windows Firewall may prompt you to allow the Chat client access to use the network. It is safe to allow this.
- Switch to the other DiscoveryChat instance and setup the chat as follows:
- User Name: Wilma
- Click Sign in
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
- 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.
- Try signing in and out from both applications. Each application is aware of the online / offline announcements of the other.
- Close both instances of the DiscoveryChat application.
Next Step
Exercise 7: Discovery Proxy