Prajna


ContractServerInfoLocal

Specify contract servers to be monitored, this class can not be serialized

Instance members

Instance memberDescription
DNSResolveOnce()
Signature: unit -> unit

Resolve: all Single server, Resolve: traffic manager once. This process is a long running process and may contain blocking operation (DNS resolve), and is recommend to run on its separate thread.

GetClusterCollection()
Signature: unit -> Cluster []

Return each server as a single entry in the cluster.

GetServerCollection()
Signature: unit -> ConcurrentDictionary<int64,string>

Return all resolved servers as a ConcurrentDictionary, where the key is int64 which can parse to the IP Address & port of the server, and the value is the host name of the server.

Static members

Static memberDescription
Parse(serversInfo)
Signature: serversInfo:ContractServersInfo -> ContractServerInfoLocal

Public interface to derive a ContractServerInfoLocal from ContractServersInfo Cache is used so that if the same ContractServersInfo is passed in, a already constructed ContractServerInfoLocal is returned

Fork me on GitHub