Exemplo n.º 1
0
        public override ResponseBase ExecuteRequest()
        {
            var resultList   = (List <string>)PingExecutor.SendPingWithTtl(Target, 1);  //start with minimum ttl in order to increase it recursively
            var resultString = "";

            foreach (string str in resultList)
            {
                resultString += str + "\n";
            }

            return(new RunCommonResponse(RunId, resultString));
        }
Exemplo n.º 2
0
        public override ResponseBase ExecuteRequest()
        {
            //start with maximum ttl (32) in order to make just one ping
            var resultList   = (List <string>)PingExecutor.SendPingWithTtl(Target, 32);
            var resultString = "";

            foreach (string str in resultList)
            {
                resultString += str + "\n";
            }
            return(new RunCommonResponse(RunId, resultString));
        }