Exemplo n.º 1
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();
 }
Exemplo n.º 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();
 }