C# Класс Shastra.Hydra.Messaging.Storage.PollingProviderBase

Наследование: IProvider, IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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