Edit

PublishAlwaysOnline (QuickStart)

Applies to: Skype for Business 2015

Sample name: PublishAlwaysOnline

Sample location: %ProgramFiles%\Microsoft UCMA 5.0\SDK\Core\Sample Applications\QuickStarts\PublishAlwaysOnline

Description

Based on the Application ID specified, the sample initializes the platform and any trusted application endpoints corresponding to the provisioned application. Upon establishment, the endpoints publish a static presence of "alwaysonline" by setting the AutomaticPresencePublicationEnabled property on an ApplicationEndpointSettings object to true. The sample establishes as many application endpoints as have been provisioned on the particular trusted application within the deployment.

For more information about provisioning trusted applications and endpoints in , see Activating a UCMA 5.0 trusted application as well as General application activation and Activating a manually-provisioned application.

Throughout the lifetime of the process, the sample application listens for the StateChanged event on the application endpoint and reflects the endpoint state changes in the console.

Features

  • Custom presence publication

  • ApplicationEndpoint establishment

  • ApplicationEndpointSettings creation by registering a delegate with RegisterForApplicationEndpointSettings

  • Endpoint state change notification handling

Prerequisites

  • Skype for Business Server 2015.

  • Provisioned trusted application endpoint.

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 development system, and then press F5.