private IPowerShellRunner CreateRunner() { IPowerShellRunner r; if (this.Isolated) { throw new NotSupportedException("PowerShell Isolation is no longer supported, please use \"with isolation\" in OtterScript instead."); } else { r = new StandardRunner(); } r.LogOutput = this.LogOutput; r.CollectOutput = this.CollectOutput; r.DebugLogging = this.DebugLogging; r.VerboseLogging = this.VerboseLogging; return(r); }
private IPowerShellRunner CreateRunner() { IPowerShellRunner r; if (this.Isolated) { r = new IsolatedPowerShellRunner(); } else { r = new StandardRunner(); } r.LogOutput = this.LogOutput; r.CollectOutput = this.CollectOutput; r.DebugLogging = this.DebugLogging; r.VerboseLogging = this.VerboseLogging; return(r); }