eBooks from Oscar Newkerk
All books and eBooks by Oscar Newkerk:
Programming for Unified ...
by Rui Maximo, Vishwa Ranjan, Chris Mayo, Oscar Newkerk, Kurt De Ding, and Microsoft Co...
Chapter 7 Structure of a UCMA Application 185 that is designed to maximize the flow of data between the application and the Offi ce Communications Server. This provides for large-scale message processing in the applica- tion. Every UCMA application must create, configure, and start a CollaborationPlatform instance before it proceeds to calling other UCMA features. Creating the Collaboration Platform for a Server Application Listing 7-1 shows how to create and configure a CollaborationPlatform class for use by a server application. LISTING 7-1 Creating and Configuring a CollaborationPlatform Class private static void PreparePlatformAndEndpoint() { //Load the local machine's certificate X509Certificate2 cert = GetLocalCertificate(); //create a ServerPlatformSettings instance to //initialize a CollaborationPlatform instance ServerPlatformSettings platformSettings = new ServerPlatformSettings( ConfigurationManager.AppSettings["ocsUserAgentUCMALab1"], Dns.GetHostEntry("localhost").HostName, Int32.Parse(ConfigurationManager.AppSettings["appLocalPort"]), ConfigurationManager.AppSettings["appGruu"], cert); //Collaboration platform initialization _collabPlatform = new CollaborationPlatform(platformSettings); //Now that the CollaborationPlatform is configured, call BeginStartup. _collabPlatform.BeginStartup(EndCollabStartup, _collabPlatform); } In Listing 7-1, the parameters, which are used as the CollaborationPlatform
(2009)

