コード例 #1
0
ファイル: pscript.cs プロジェクト: x0x029a/PoshSecFramework
 private void InitializeScript()
 {
     rspaceconfig = RunspaceConfiguration.Create();
     host = new psfhost(frm);
     hostinterface = (psfhostinterface)host.UI;
     hostinterface.WriteProgressUpdate += WriteProgressUpdate;
     hostinterface.WriteUpdate += WriteUpdate;
     rspace = RunspaceFactory.CreateRunspace(host, rspaceconfig);
     rspace.Open();
     InitializeSessionVars();
 }
コード例 #2
0
 private void InitializeScript()
 {
     rspaceconfig  = RunspaceConfiguration.Create();
     host          = new psfhost(frm);
     hostinterface = (psfhostinterface)host.UI;
     hostinterface.WriteProgressUpdate += WriteProgressUpdate;
     hostinterface.WriteUpdate         += WriteUpdate;
     rspace = RunspaceFactory.CreateRunspace(host, rspaceconfig);
     rspace.Open();
     InitializeSessionVars();
 }