Share via


Creating an Outgoing Two-Party Conversation

Applications can create a conversation by specifying an endpoint or by specifying an endpoint and settings for the conversation.

// Initialize and register the endpoint, using the credentials of the user the application will be acting as.
UserEndpointSettings userEndpointSettings = new UserEndpointSettings(_userURI, userServer);
userEndpointSettings.Credential = credential;
userEndpoint = new UserEndpoint(collabPlatform, userEndpointSettings);
userEndpoint.BeginEstablish(EndEndpointEstablish, userEndpoint);

// Set up the conversation.
ConversationSettings convSettings = new ConversationSettings();
convSettings.Priority = ConversationPriority.Normal;
convSettings.Subject = "Your trip plan";

// Conversation represents a collection of modalities in the context of a dialog with one or multiple callees.
Conversation conversation = new Conversation(userEndpoint, convSettings);