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

            String data = DateTime.Now.ToString("HH:mm:ss") + "\t" + "DOWN" + "\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();

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