Subscribe PresenceView (QuickStart)
Sample name: SubscribePresenceView
Sample location: %ProgramFiles%\Microsoft UCMA 3.0\SDK\Core\Sample Applications\QuickStarts\SubscribePresenceView
Description
The application initializes the platform and endpoint and subscribes to a target user. The application uses two RemotePresenceView objects, each configured with different SubscriptionMode values: Persistent and Polling.
After the subscription is complete, the application listens for incoming notifications from a user logged into Microsoft Lync 2010 and displays the notifications in the console.
Features
Creation and configuration of RemotePresenceView objects
Presence subscription using RemotePresenceView
Monitoring of presence-related notifications
Prerequisites
Microsoft Lync Server 2010.
Two users, enabled to user Lync Server 2010.
The credentials for each user, and a client capable of signing into Lync Server 2010.
A client signed in to Lync Server 2010.
Running the Sample
Supply the user credentials in the accompanying app.config file, or you will be prompted for them when you run the sample.
Open the project in Microsoft Visual Studio, and then press F5.
Change the presence of the user signed in to Lync 2010, and see the presence change in the console.