Partager via


Lync 2010 Sample Applications

When you install the Microsoft Lync 2010 SDK, you get seven sample applications, including Windows Forms, Windows Presentation Foundation (WPF), and Silverlight 4 projects. These samples include four quick-start samples that focus on specific features of the API. The last three samples are reference samples and provide a broader look at the API.

The SDK installation program places the samples in the *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples folder on 32-bit computers and %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples on 64-bit computers.

Quick-Start Samples

Audio/Video Conversation

This sample Uses the Microsoft.Lync.Model.Conversation and Microsoft.Lync.Model.Conversation.AudioVideo namespaces from the Microsoft Lync 2010 API to implement a conversation window.

Features include:

  • Implements a fully functional audio-video conversation window.

  • Shows how to register and handle conversation manager and audio-video conversation events.

  • Uses the most common features of Conversation, AVModality, AudioChannel and VideoChannel.

Path: *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples\AudioVideoConversation or %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples\AudioVideoConversation

Lync Automation

This sample uses the Automation class in the Lync 2010 API to start a new conversation with one or more Lync contacts.

Features include:

  • Uses the Automation API in Lync to start a new conversation with a set of Lync contacts.

  • The conversation can be started with one or more modalities at the same time.

  • Shows how to set up specific settings for each conversation modality.

Path: *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples\Automation or %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples\Automation

Conversation Window Docker

This application demonstrates the ability to dock a conversation window within another WPF application.

Features include:

  • Docks a conversation window into a WPF application.

  • Demonstrates how to use a WindowsFormsHost to dock a conversation window.

  • Shows how to handle the different events raised by a conversation window.

  • Shows how to Flash the window when the conversation window requires attention.

Path: *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples\DockingConversationWindowSample or %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples\DockingConversationWindowSample

Contact Information

This sample uses the Lync Model API to retrieve and publish information of the Self contact (currently signed in user). It also shows how to sign in to Lync using the credentials of the active user.

Features include:

  • Get information of a Lync contact such as the name, photo, current availability and personal note.

  • Publish information of the Self contact, such as availability and personal note.

  • Sign in to Lync using the credentials of the user currently logged in to the machine.

  • Sign out from Lync.

  • Handle Lync events to respond to changes in the client state and changes in the contact information.

Path: *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples\ContactInformation or %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples\ContactInformation

Reference Samples

The following samples provide complete application examples using the Lync 2010 API. These examples illustrate the use of Lync 2010 API in real world scenarios.

Contact Center Extension

The Contact Center reference application enables an Enterprise to be contacted by external customers via the most appropriate channel: Web Chat, Click-To-Call, PSTN, or federation with the Windows Live Messenger, Yahoo!, or AOL clouds. It illustrates how application developers can take advantage of both Microsoft Lync 2010 API and Microsoft Unified Communications Managed API (UCMA) 3.0 to implement a powerful Business To Consumer (B2C) solution with Microsoft Lync 2010 extensions for Agents and Supervisors and a custom skill-based routing match maker powered by UCMA 3.0.

Features include:

  • The reference application makes use of the Microsoft Lync 2010 Conversation Window Extension to host two Silverlight 4.0 Web applications: an Agent Dashboard, and a Supervisor Dashboard.

  • The Agent Dashboard provides Customer Service Representatives with a contextual extension to Lync 2010 to serve customers. In particular, the Agent Dashboard allows receiving real-time and historical contextual information about the customer, or controlling the customer interactions. For example, the agent can escalate the call to an expert, or put the customer on hold, etc.

  • The Supervisor Dashboard provides Supervisors with the ability to view the activity of their Customer Service Representatives and to initiate a monitoring session for quality purposes. It allows a Supervisor to silently monitor a customer interaction, whisper coaching instructions to a Customer Service Representative, and intervene.

Path: *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples\ContactCenterExtension or %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples\ContactCenterExtension

Conversation Translator

This sample uses the Microsoft.Lync.Model.Conversation namespace from the Lync Model API to intercept instant messages and provide translation using Bing Web Services.

Features include:

  • The sample provides an example architecture for registering for and handling asynchronous Lync 2010 API events in Silverlight.

  • Register for two Conversation related events: ParticipantAdded and InstantMessageReceived.

  • Use the BeginSendMessage method and callback.

  • Uses the Bing Translator Web Service.

Path: *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples\ConversationTranslator or %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples\ConversationTranslator

Proposal Tracker

The ProposalTracker application demonstrates the use of Microsoft Lync controls in a Silverlight application. The application is a demo, representing a tool used by a fictitious company called Fabrikam Inc. It tracks a list of proposals and sales people in the company.

Features include:

Path: *%PROGRAMFILES%\*Microsoft Lync\SDK\Samples \ProposalTracker or %PROGRAMFILES(X86)%\Microsoft Lync\SDK\Samples \ProposalTracker