C# Класс Raven.Client.ServerStatusExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

IsServerOnline() публичный статический Метод

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.
Результат bool

TryGetServerVersion() публичный статический Метод

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.
Результат bool