Exemplo n.º 1
0
 public void Log(SimpleSystemDataProvider provider)
 {
     System.IO.StreamWriter writer =
         new System.IO.StreamWriter(this.filePath, true);
     writer.WriteLine(DateTime.Now + "->CPU load:" +
                      provider.CPULoad + "Available RAM:" + provider.AvailableRAM);
     writer.Close();
 }
Exemplo n.º 2
0
 public void Log(SimpleSystemDataProvider provider)
 {
     Console.WriteLine(DateTime.Now + "->CPU load:" +
                       provider.CPULoad + "Available RAM:" + provider.AvailableRAM);
 }