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!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top