Learn how to create a talk space add-in that presents Microsoft Unified marketing and sales communications operated API (UCMA) robot messages and filter systems a nearby user’s communications before these include posted to your chat place.
Prerequisites relate an add-in with a talk area generating a Silverlight add-in Acquiring the internet hosting cam place subsequent methods added means
Center concepts knowing
Understand the Microsoft Lync 2013 Persistent Chat space add-in feature through situations where the add-in is employed plus the courses and techniques which can be regularly develop an add-in.
Understand creating a Persistent Chat room add-in that presents communications that a UCMA robot features uploaded on web hosting cam area and then filters the pending message articles of the local individual.
Relate an add-in with a cam space
Before your add-in tends to be launched in a chat windows, you will need to enter the add-in utilizing the Lync host 2013. The add-in is unsealed into the persistent cam area screen when a user double-clicks a persistent chat place through the contact number. You are able to subscribe a persistent cam place through the use of a server-side instrument like the Group Chat Administration Software. For information regarding associating an add-in with a chat place with the Microsoft Lync machine 2013 Persistent Chat SDK, read ChatRoomManagementServices.BeginUpdateChatRoom.
You really need to associate your brand-new add-in with a personal speak space so you can taste the add-in. If your add-in is prepared for community incorporate, connect it with a public chat room.
An exclusive speak place is visually noticeable to the members. Which means that the private cam room can’t be discovered through the help of a chat room query to search for a chat area.
Creating a Silverlight add-in
Incorporate Microsoft Visual Studio to produce the solution and task files for the add-in. It is possible to opened a better solution in Microsoft term internet should you want to generate a sophisticated user experience.
Generate a Silverlight add-in
Find the Lync Silverlight program layout in the middle pane in the New venture dialog. This template populates the sources folder with the installation which contains the namespace you utilize getting chat room characteristics.
A better solution file has become prepared to update. The MainPage.xaml document declares a person controls that nests a grid, heap board, while the PresenceIndicator regulation. This controls is in the heap panel to display you how to embed Lync handles in your Silverlight program.
Getting the hosting talk place
The internet hosting chat place will be the entry point to all the Lync features as possible code in an add-in. To have the place, contact the LyncClient.GetHostingRoom system. The best place to have the internet talk room is within the add-in constructor.
To get the internet cam place
Create the Room.IsSendingMessage show in order to catch and filter emails before these include uploaded by regional user.
Create the Room.Messagesgot celebration in order to capture brand new communications once they tend to be published on web hosting cam space.
Code example: Chat space information filtration
Here example makes use of XAML to declare the add-in UI. The controls integrate an entry area that user kinds a filtration sequence into, and text blocks that demonstrate the first content post and also the blog post following the add-in features reformatted they.
The subsequent example interacts using the XAML consumer command over a Silverlight chat place add-in. If the individual posts a message for the hosting cam space, this add-in captures the content prior to it being published. In the event the message provides the filtration sequence that is joined in filtration text container, the content post is actually terminated. Otherwise, the Dating by age dating content was submitted on space
Next steps
Now that you’ve developed a chat room add-in, understand learning to make your add-in connect to the internet hosting cam place.
Tip |
---|