C# Class Raven.Client.ServerStatusExtensions

Afficher le fichier Open project: ravendb/ravendb.contrib

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

TryGetServerVersion() public static méthode

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.
Résultat bool