Exemple #1
0
 /// <summary>
 /// Powershell logic.
 /// </summary>
 protected override void ProcessRecord()
 {
     while (Scraper.Exec(Expression)?.ToLower() != "true")
     {
         Thread.Sleep(1000);
     }
 }
Exemple #2
0
 /// <summary>
 /// Powershell cmdlet logic
 /// </summary>
 protected override void ProcessRecord()
 {
     WriteObject(Scraper.Exec(Expression));
 }