Ejemplo n.º 1
0
        private void OnPingUp(int epIndex)
        {
            //Debug.WriteLine("# Ping [UP] at " + EndPoints[epIndex]);
            //            String data = String.Format("{0,-10} {1,-20} {2,-20} {3}",
            //DateTime.Now.ToString("HH:mm:ss"), "UP", EndPoints[epIndex], NodeNames[epIndex]);
            String data = DateTime.Now.ToString("HH:mm:ss") + "\t" + "UP" + "\t" + EndPoints[epIndex] + "\t" + NodeNames[epIndex];

            Debug.WriteLine(data);

            //When Date change create new file, append log
            var sFileName = DateTime.Today.ToString("yyyy_MM_dd") + ".log";

            new ReadWriteFile(sFileName, data).Append();

            PingUp?.Invoke(this, epIndex);
        }
Ejemplo n.º 2
0
 private void OnPingUp(int epIndex)
 {
     Debug.WriteLine("# Ping [UP] at " + EndPoints[epIndex]);
     PingUp?.Invoke(this, epIndex);
 }