Creating UCMA Applications with a UserApplication instance. Example: sending IMs.
The UCMA platform is very powerful, but sometimes you just want to send a message. Of course, you can do this using the Lync Client SDK, but you might not want the obvious interaction with the Lync client and visibility that provides. If you’re writing a Windows .NET application, you might just want to perform a Lync activity within the code, silently and secretly 🙂
When you write UCMA code you choose whether to do so with UserEndpoints or with ApplicationEndpoints. UserEndpoints are tied to a specific user, a Lync account and must have a username and password. ApplicationEndpoints have to be pre-registered with the Lync Server like this and are generally more powerful than UserEndpoints.
However, if all you want to do is send a quick IM and you’re in an application that already has the user’s credentials (or you can re-prompt for them), then a UserEndpoint is fine.
Here’s a quick example showing how to do this. This code will create and establish a UserEndpoint, send an IM and then Terminate: