ServerAgent.WaitForServerAvailable(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for