SubscribePresenceView (QuickStart)

Applies to: Skype for Business 2015

Sample name: SubscribePresenceView

Sample location: %ProgramFiles%\Microsoft UCMA 5.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 RemotePresenceViewSubscriptionMode values: Persistent and Polling.

After the subscription is complete, the application listens for incoming notifications from a user logged in to Skype for Business 2015 and displays the notifications in the console.

Features

  • Creation and configuration of RemotePresenceView objects

  • Presence subscription using a RemotePresenceView object

  • Monitoring of presence-related notifications

Prerequisites

  • Two users, enabled to user Skype for Business Server 2015.

  • The credentials for each user, and a client capable of signing in to Skype for Business Server 2015.

  • A client signed in to Skype for Business Server 2015.

Running the sample

  1. Supply the user credentials in the accompanying app.config file, or you will be prompted for them when you run the sample.

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

  3. Change the presence of the user signed in to Skype for Business 2015, and see the presence change in the console.