public Clone ( ScopeUsages scopeUsage = ScopeUsages.CurrentScope ) : |
||
scopeUsage | ScopeUsages | |
return |
internal override void ProcessRecord() { ExecutionContext context = ExecutionContext.Clone(); PipelineCommandRuntime pipelineCommandRuntime = (PipelineCommandRuntime)CommandRuntime; this._scriptInfo.ScriptBlock.Ast.Visit(new ExecutionVisitor(context, pipelineCommandRuntime, false)); }
private void CreateOwnScope() { _originalContext = ExecutionContext; var executionSessionState = CommandInfo.Module != null ? CommandInfo.Module.SessionState : ExecutionContext.SessionState; _scopedContext = ExecutionContext.Clone(executionSessionState, _scriptBlockInfo.ScopeUsage); _scopedExecutionVisitor = new ExecutionVisitor(_scopedContext, CommandRuntime, false); }
private void CreateOwnScope() { _originalContext = ExecutionContext; _scopedContext = ExecutionContext.Clone(_scriptBlockInfo.ScopeUsage); }
private void CreateOwnScope() { _originalContext = ExecutionContext; _scopedContext = ExecutionContext.Clone(_scriptBlockInfo.ScopeUsage); _scopedExecutionVisitor = new ExecutionVisitor(_scopedContext, CommandRuntime, false); }