Exemple #1
0
        //#region Presence
        //// Registered event handler for the ApplicationEndpointOwnerDiscovered
        //// event on the CollaborationPlatform for the provisioned application.
        private void Platform_ApplicationEndpointOwnerDiscovered(object sender,
                                                                 ApplicationEndpointSettingsDiscoveredEventArgs e)
        {
            collabPlatform.UnregisterForApplicationEndpointSettings(Platform_ApplicationEndpointOwnerDiscovered);
            ApplicationEndpointSettings settings = e.ApplicationEndpointSettings;

            this.logger.Log("Publishing Presence");
            //Set the endpoint presence to appear as always online
            InitializePublishAlwaysOnlineSettings(settings);
            this.applicationEndpoint = new ApplicationEndpoint(this.collabPlatform, settings);

            this.applicationEndpoint.InnerEndpoint.AddFeatureParameter("isAcd");

            this.applicationEndpoint.RegisterForIncomingCall <AudioVideoCall>(this.AV_Received);
            this.applicationEndpoint.RegisterForIncomingCall <InstantMessagingCall>(this.IM_Received);

            this.logger.Log("Establishing the endpoint.");
            this.applicationEndpoint.EndEstablish(this.applicationEndpoint.BeginEstablish(null, null));
        }