For this sample, we are going to create a console application in C#. The application requires that the UCMA 2.0 Software Development Kit (SDK) is installed, along with any of its prerequisites.
Start by running Microsoft Visual Studio 2008 and creating a new Microsoft Windows project for a console application using C#. Name the project PublishPresence.
At the top of the Program.cs file, add the following lines to reference the class libraries that the application uses.
using System.Configuration; using System.Security.Principal; using System.Security.Cryptography.X509Certificates; using System.Net; using System.Diagnostics; using Microsoft.Rtc.Signaling; using Microsoft.Rtc.Collaboration; using Microsoft.Rtc.Collaboration.Presence; ...