C# Class Raven.Client.ServerStatusExtensions

Mostra file Open project: ravendb/ravendb.contrib

Public Methods

Method Description
IsServerOnline ( this documentStore, int timeoutMilliseconds = 5000 ) : bool

Checks to see if the RavenDB Server associated with the document store is accessible.

TryGetServerVersion ( this documentStore, Raven.Abstractions.Data.BuildNumber &buildNumber, int timeoutMilliseconds = 5000 ) : bool

Tries to get the version information from the RavenDB server associated with the document store.

Method Details

IsServerOnline() public static method

Checks to see if the RavenDB Server associated with the document store is accessible.
public static IsServerOnline ( this documentStore, int timeoutMilliseconds = 5000 ) : bool
documentStore this The document store.
timeoutMilliseconds int Timeout in milliseconds. Defaults to 5 seconds.
return bool

TryGetServerVersion() public static method

Tries to get the version information from the RavenDB server associated with the document store.
public static TryGetServerVersion ( this documentStore, Raven.Abstractions.Data.BuildNumber &buildNumber, int timeoutMilliseconds = 5000 ) : bool
documentStore this The document store.
buildNumber Raven.Abstractions.Data.BuildNumber If the server is reachable, this will output the data containing the product version and build number.
timeoutMilliseconds int Timeout in milliseconds. Defaults to 5 seconds.
return bool