Autoprovisioning (QuickStart)
Sample name: AutoProvisioning
Sample location: %ProgramFiles%\Microsoft UCMA 3.0\SDK\Core\Sample Applications\QuickStarts\AutoProvisioning
Description
Based on the ApplicationID specified, the sample initializes the collaboration platform and the application endpoint corresponding to the provisioned application. The sample will establish as many ApplicationEndpoint instances 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 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 StateChanged and OwnerPropertiesChanged notifications on the application endpoint and reflects these notifications in the console. Developers can modify the provisioning information relevant to ApplicationEndpoints used in this sample (for example, by updating contact object properties such as displayName) to see how the ProvisioningData changes are surfaced.
Features
ApplicationEndpointSettings creation using RegisterForApplicationEndpointSettings
ApplicationEndpoint establishment
Endpoint StateChanged notification handling
ProvisioningDataChanged notification handling
Prerequisites
Microsoft Lync Server 2010.
Provisioned trusted application endpoint
Running the Sample
Supply the provisioned Application ID to be used by the sample in the accompanying app.config file, OR
Supply this value when prompted for it when you run the sample.
Open the project in Microsoft Visual Studio, and then press F5.