Closed joel74 closed 9 years ago
I think this is fine. In a slightly more "real world" scenario, we'd probably hook all the output into log4net (or something) so we can control it better without passing parameters, but for the sake of this demo, it's fine like this :-)
I added a public boolean ShowConsoleStandardOutput which controls whether the ApproveLastRequest() method writes its results out to console standard output or not.
ShowConsoleStandardOutput is set to true by default when calling SetValidator().
There are three new PowerShell functions (Disable-ShowConsoleStandardOutput, Enable-ShowConsoleStandardOutput, and Get-ShowConsoleStandardOutput) for manipulating the value of the bool from PowerShell.
I also added a new function called Get-IgnoreChainErrors to retrieve the current IgnoreChainErrors value