C# Class HydraStressTestDtos.Pinger

Afficher le fichier Open project: NorthNick/hydra Class Usage Examples

Méthodes publiques

Méthode Description
Pinger ( IEnumerable servers ) : System

Class to maintain ping time information to a collection of servers

RefreshSync ( ) : void

Refresh ServerInfo, and return when complete.

Start ( ) : void

Start the pinger running. The first refresh starts immediately.

Stop ( ) : void

Stop the pinger. Any ongoing refreshes will complete and raise the Refreshed event.

Private Methods

Méthode Description
OnRefreshed ( ) : void
Ping ( string server ) : PingInfo
PingTask ( ) : System.Threading.Tasks.Task
RefreshServerInfoBegin ( object sender, System.Timers.ElapsedEventArgs e ) : void
RefreshServerInfoEnd ( IEnumerable pingReplies ) : void

Method Details

Pinger() public méthode

Class to maintain ping time information to a collection of servers
public Pinger ( IEnumerable servers ) : System
servers IEnumerable Names or string representation of IP addresses of the servers to monitor
Résultat System

RefreshSync() public méthode

Refresh ServerInfo, and return when complete.
public RefreshSync ( ) : void
Résultat void

Start() public méthode

Start the pinger running. The first refresh starts immediately.
public Start ( ) : void
Résultat void

Stop() public méthode

Stop the pinger. Any ongoing refreshes will complete and raise the Refreshed event.
public Stop ( ) : void
Résultat void