ServerAgent.WaitForServerAvailable(Int32)(Int32) method

 
Communications Server 2007 Server SDK Documentation

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.

  [C#]
public static void WaitForServerAvailable(Int32)(
  Int32 maxRetryCount
);

FakePre-3e22bb425f7c47e69fb4a18e3069699b-a7cc287692f04faeaa835528983083da

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.
Namespace: Microsoft.Rtc.Sip
Assembly: ServerAgent (in ServerAgent.dll)

See Also

ServerAgent

  
  What did you think of this topic?
  © 2007 Microsoft Corporation. All rights reserved.