/// <summary></summary> /// <param name="sp"></param> public DynamicPowerShell(IServiceProvider sp) { this.sp = sp; this.host = new DynamicPsHost(this); // create the runspace this.runspace = RunspaceFactory.CreateRunspace(host, InitialSessionState.CreateDefault2()); runspace.Open(); // activate verbose runspace.SessionStateProxy.SetVariable("VerbosePreference", "Continue"); //runspace.SessionStateProxy.SetVariable("DebugPreference", "Continue"); } // ctor
public DynamicPowerShell(IServiceProvider sp) { this.sp = sp; this.host = new DynamicPsHost(this); // create the runspace this.runspace = RunspaceFactory.CreateRunspace(host, InitialSessionState.CreateDefault2()); runspace.Open(); // activate verbose runspace.SessionStateProxy.SetVariable("VerbosePreference", "Continue"); //runspace.SessionStateProxy.SetVariable("DebugPreference", "Continue"); } // ctor
public DynamicPsUserInterface(DynamicPsHost host) { this.host = host; } // ctor