コード例 #1
0
 void createRunspace(CustomHost host)
 {
     var runspace = RunspaceFactory.CreateRunspace(host);
     runspace.Open();
     host.PushRunspace(runspace);
 }
コード例 #2
0
 public PowerShellEngine(IShellUI ui)
 {
     host = new CustomHost(ui);
     createRunspace(host);
 }