Exemple #1
0
        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;
        }
Exemple #2
0
        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);
        }