O'Reilly logo

Programming for Unified Communications with Microsoft® Office Communications Server 2007 R2 by Micosoft Office Communications Server Team, Oscar Newkerk, Chris Mayo, Vishwa Ranjan, Kurt De Ding, Rui Maximo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required