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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With