Edit

Share via


ServerAgent.WaitForServerAvailable(Int32) Method

Definition

Waits for the RTCSRV process to startup.

public:
 static void WaitForServerAvailable(int maxRetry);
public static void WaitForServerAvailable (int maxRetry);
Public Shared Sub WaitForServerAvailable (maxRetry As Integer)

Parameters

maxRetry
Int32

Supplies the maximum amount of retries if the Server is not running. Each retry results in a delay of 10 seconds.

Remarks

Note: Applications should call this method before they create their first ServerAgent object.

If Microsoft Lync Server 2013 is not available, this method will sleep for 10 seconds and check again, for up to maxRetryCount times. When Lync Server 2013 is available, this method returns. If the server does not become available after waiting for the specified number of times, it throws either UnauthorizedException or ServerNotFoundException.

Applies to