public EmbeddableRunspace(NotifyPSHostExit notifyPSHostExit)
 {
     this.embeddedPSHost = new EmbeddablePSHost(notifyPSHostExit);
     this.runspace = RunspaceFactory.CreateRunspace(embeddedPSHost);
     this.runspace.Open();
     RunScript("Add-PsSnapin LabLauncherTunnel");
 }
 public EmbeddableRunspace(NotifyPSHostExit notifyPSHostExit)
 {
     this.embeddedPSHost = new EmbeddablePSHost(notifyPSHostExit);
     this.runspace = RunspaceFactory.CreateRunspace(embeddedPSHost);
     this.runspace.Open();
     RunScript("add-pssnapin PowerShellTunnel");
 }
 public EmbeddableRunspace(NotifyPSHostExit notifyPSHostExit)
 {
     this.embeddedPSHost = new EmbeddablePSHost(notifyPSHostExit);
     this.runspace       = RunspaceFactory.CreateRunspace(embeddedPSHost);
     this.runspace.Open();
     RunScript("add-pssnapin PowerShellTunnel");
 }
Exemple #4
0
 public EmbeddablePSHost(NotifyPSHostExit notifyPSHostExit)
 {
     this.notifyPSHostExit = notifyPSHostExit;
     this.privateData      = new PSObject(exposed);
 }
 public EmbeddablePSHost(NotifyPSHostExit notifyPSHostExit)
 {
     this.notifyPSHostExit = notifyPSHostExit;
     this.privateData = new PSObject(exposed);
 }