Partilhar via


Publish AlwaysOnline (QuickStart)

Sample name: PublishAlwaysOnline

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

Description

Based on the Application ID specified, the sample initializes the platform and any trusted application endpoint(s) corresponding to the provisioned application. Upon establishment, the endpoint(s) publishes static "alwaysonline" presence. The sample will establish as many application endpoints as have been provisioned on the particular trusted application within the Microsoft Lync Server 2010 deployment.

For more information about provisioning trusted applications and endpoints in Microsoft Lync Server 2010, see Activating a UCMA 3.0 Core 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

  • Lync Server 2010.

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