public PingLineViewModel Ping() { Thread.Sleep(TimeSpan.FromSeconds(1).Milliseconds); var ping = new System.Net.NetworkInformation.Ping(); var reply = ping.Send(Host); var viewModel = new PingLineViewModel ( bytes: Bytes, host: Host, reply: reply ); return viewModel; }
public PingLineViewModel Ping() { Thread.Sleep(TimeSpan.FromSeconds(1).Milliseconds); var ping = new System.Net.NetworkInformation.Ping(); var reply = ping.Send(Host); var viewModel = new PingLineViewModel ( bytes: Bytes, host: Host, reply: reply ); return(viewModel); }