Esempio n. 1
0
 /// <summary>
 /// LogObject: Logs the given object though WriteObject.
 /// </summary>
 /// <param name="obj">The object to be logged</param>
 /// <param name="command">The Invoke-PSLint command this logger is running through</param>
 public void LogObject(Object obj, InvokeScriptAnalyzerCommand command)
 {
     if (command == null)
     {
         throw new ArgumentNullException("command");
     }
     if (obj == null)
     {
         throw new ArgumentNullException("diagnostic");
     }
     command.WriteObject(obj);
 }