Detailed Code

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.

  1. Start by running Microsoft Visual Studio 2008 and creating a new Microsoft Windows project for a console application using C#. Name the project PublishPresence.

  2. 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; ...

Get Programming for Unified Communications with Microsoft® Office Communications Server 2007 R2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.