C# Class HydraStressTestDtos.Pinger

Mostra file Open project: NorthNick/hydra Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return System

RefreshSync() public method

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

Start() public method

Start the pinger running. The first refresh starts immediately.
public Start ( ) : void
return void

Stop() public method

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