Пример #1
0
 public void Add(string cmd, string result)
 {
     LogEntry le = new LogEntry();
     le.Id = Entries.Count;
     le.Cmd = cmd;
     le.Result = result;
     le.LogDate = DateTime.Now;
     Entries.Add(le);
 }
Пример #2
0
 public void Add(string cmd, string result, Collection<PSObject> psResult)
 {
     LogEntry le = new LogEntry();
     le.Id = Entries.Count;
     le.Cmd = cmd;
     le.Result = result;
     le.PsResult = psResult;
     le.LogDate = DateTime.Now;
     Entries.Add(le);
 }
Пример #3
0
 public void Add(LogEntry entry)
 {
     Entries.Add(entry);
 }