C# 클래스 Shastra.Hydra.Messaging.Storage.PollingProviderBase

상속: IProvider, IDisposable
파일 보기 프로젝트 열기: NorthNick/hydra

보호된 프로퍼티들

프로퍼티 타입 설명
Distances ServerDistance
StoreDict IStore>.Dictionary

공개 메소드들

메소드 설명
Dispose ( ) : void
GetStore ( bool waitForInitialisation ) : IStore

Fetches the current store to use for polling.

ServerError ( string server ) : void

Called by listener or sender when they cannot contact a server.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
FinishedInitialisation ( ) : void
InitDistance ( IEnumerable servers ) : void
MeasureDistance ( string server ) : ServerDistanceInfo
OnDistanceInfo ( ServerDistanceInfo sdi ) : void
PollingProviderBase ( IEnumerable stores ) : System

Initialise messaging. Must be called before any attempt to send or listen.

PollingProviderBase ( IEnumerable hydraServers, string database = null, int port = null ) : System

Initialise messaging. Must be called before any attempt to send or listen.

PollingProviderBase ( string hydraServer, string database = null, int port = null ) : System

Initialise messaging. Must be called before any attempt to send or listen.

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

FinishedInitialisation() 보호된 메소드

protected FinishedInitialisation ( ) : void
리턴 void

GetStore() 공개 메소드

Fetches the current store to use for polling.
public GetStore ( bool waitForInitialisation ) : IStore
waitForInitialisation bool Whether to block until the IProvider is fully initialised
리턴 IStore

InitDistance() 보호된 메소드

protected InitDistance ( IEnumerable servers ) : void
servers IEnumerable
리턴 void

MeasureDistance() 보호된 메소드

protected MeasureDistance ( string server ) : ServerDistanceInfo
server string
리턴 ServerDistanceInfo

OnDistanceInfo() 보호된 메소드

protected OnDistanceInfo ( ServerDistanceInfo sdi ) : void
sdi ServerDistanceInfo
리턴 void

PollingProviderBase() 보호된 메소드

Initialise messaging. Must be called before any attempt to send or listen.
protected PollingProviderBase ( IEnumerable stores ) : System
stores IEnumerable Hydra stores to communicate with
리턴 System

PollingProviderBase() 보호된 메소드

Initialise messaging. Must be called before any attempt to send or listen.
protected PollingProviderBase ( IEnumerable hydraServers, string database = null, int port = null ) : System
hydraServers IEnumerable Hydra servers to communicate with
database string Name of the messaging database. Defaults to "hydra"
port int Port number of the messaging database. Defaults to 5984
리턴 System

PollingProviderBase() 보호된 메소드

Initialise messaging. Must be called before any attempt to send or listen.
protected PollingProviderBase ( string hydraServer, string database = null, int port = null ) : System
hydraServer string Hydra server to communicate with
database string Name of the messaging database. Defaults to "hydra"
port int Port number of the messaging database. Defaults to 5984
리턴 System

ServerError() 공개 메소드

Called by listener or sender when they cannot contact a server.
public ServerError ( string server ) : void
server string The server that could not be contacted
리턴 void

프로퍼티 상세

Distances 보호되어 있는 프로퍼티

protected ServerDistance Distances
리턴 ServerDistance

StoreDict 보호되어 있는 프로퍼티

protected Dictionary StoreDict
리턴 IStore>.Dictionary