Exemplo n.º 1
0
        /// <summary>
        /// Start an async ping
        /// </summary>
        /// <returns></returns>
        private async Task StartPingTask()
        {
            //ping host and log results
            PingResult pingResult = await Ping.StartPingAsync();

            if ((bool)IsPingRunning)
            {
                PingResultsList.Add(pingResult);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Start an async ping
        /// </summary>
        /// <returns></returns>
        private async Task StartPingTask()
        {
            Response pingResult = await Ping.StartPingAsync();

            PingResultsList.Add(pingResult);
        }