Question

When using the Lync 2010 API the LyncClient can get in the Invalid state. This occurs if for instance the Lync process is shut down. When Lync is started again a call to Lync.GetClient() returns a Lync client reference in an Invalid state. Reading the MSDN documentation is not very useful - the Invalid state is not described: http://msdn.microsoft.com/en-us/library/microsoft.lync.model.clientstate_di_3_uc_ocs14mreflyncclnt.aspx

My question is; how can I retrieve a Lync client reference which is not in an Invalid state?

Thanks!

Was it helpful?

Solution

The answer to my question/problem is to call the GetClient() from the same thread as it is called from the first time. This seems to never get a client in the Invalid state.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top