Share via


ServerAgent.WaitForServerAvailable(Int32)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

ServerAgent.WaitForServerAvailable(Int32)

The WaitForServerAvailable method checks to see whether the Office Communications Server process has started and initialized.

Note

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

Syntax

 public static void WaitForServerAvailable(Int32)( 
 Int32 maxRetryCount 
 ); 

Syntax

 Public Shared Function WaitForServerAvailable(Int32)( _ 
 ByVal maxRetryCount As Int32 _  
 ) 
As  void 
    Implements ServerAgent.WaitForServerAvailable(Int32)

Parameters

  • maxRetryCount
    Specifies the maximum number of times to check.

Remarks

If the Office Communications Server is not available, this method will sleep for 10 seconds and check again, for up to maxRetryCount times. When the Office Communications Server becomes 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.

Requirements

Redistributable: Requires Microsoft Office Communications Server 2007 R2.

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

ServerAgent