ServerAgent.WaitForServerAvailable(Int32)(Int32) method

Microsoft Office Live Communications Server 2005 with SP1


The WaitForServerAvailable method checks to see whether the Live 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)(Int32maxRetryCount);
[Visual Basic .NET]Public Shared Function WaitForServerAvailable(Int32)( _
  ByVal maxRetryCount As Int32 _
) As void
Implements ServerAgent.WaitForServerAvailable(Int32)


  • maxRetryCount
    Specifies the maximum number of times to check.


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


Redistributable: Requires Microsoft Office Live Communications Server 2005 with SP1.
Namespace: Microsoft.Rtc.Sip
Assembly: ServerAgent (in ServerAgent.dll)

See Also


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