Subscribe Presence (QuickStart)

Sample name: SubscribePresence

Sample location: %ProgramFiles%\Microsoft UCMA 3.0\SDK\Core\Sample Applications\QuickStarts\SubscribePresence

Description

The application initializes the platform and endpoint and subscribes to the presence of a target user. Throughout the process, the application listens for incoming notifications from a user logged into Microsoft Lync 2010 and reflects the updated state of that user in the console.

Features

  • Presence subscription

  • Monitoring of presence-related notifications

Prerequisites

  • Microsoft Lync Server 2010.

  • Two users, enabled to user .

  • The credentials for each user, and a client capable of signing in to Lync Server 2010.

  • A client signed in to Lync Server 2010.

Running the Sample

  1. Supply the configuration settings to be used by the sample in the accompanying App.config file, you will be prompted for them when you run the sample.

  2. Open the project in Microsoft Visual Studio development system, and then press F5.

  3. Change the presence of the user logged in on Lync 2010, and see the presence change in the console.