Exercise 4: Verification
- Press CTRL+F5 to start an instance of the DiscoveryChat.exe application without debugging.
- Switch back to Visual Studio and press Ctrl+F5 again to launch another instance of the DiscoveryChat.exe application.
Switch to one of the instances of DiscoveryChat.exe, and setup the chat as follows:
- User Name: Fred
Click Sign In
Figure 14
Sign in as Fred
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.exe instance, and setup the chat as follows:
- Username: Wilma
- Click Sign In
- When the Wilma instance signs in, it will do ad hoc discovery immediately and locate the Fred instance.
- Double-click the URI in the available users list to start a chat with Fred.
- Send Message Text: Hi Fred
- Click Send
When you start the chat, you will see Wilma appear in the user list on the Fred Discovery chat window.
Figure 15
Two instances of DiscoveryChat application that discovered each other
- Close both instances of the DiscoveryChat application.
Next Step
Exercise 5: Metadata Extensions