コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }