C# 클래스 Raven.Client.ServerStatusExtensions

파일 보기 프로젝트 열기: ravendb/ravendb.contrib

공개 메소드들

메소드 설명
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