InitRunSpace() private method

private InitRunSpace ( ) : System.Management.Automation.Runspaces.Runspace
return System.Management.Automation.Runspaces.Runspace
Beispiel #1
0
 public void InitializeInCurrentThread()
 {
     try {
         RunSpace = _outer.InitRunSpace();
     } catch (Exception e) {
         LOG.Error(e, "Error while initializing runspace");
         throw;          // if in separate thread, this causes server to crash
     }
 }
Beispiel #2
0
 public void InitializeInCurrentThread()
 {
     try {
         RunSpace = _outer.InitRunSpace();
     } catch (Exception e) {
         Console.WriteLine("Error in InitRunSpace(): " + e);
         LOGGER.TraceEvent(TraceEventType.Error, CAT_DEFAULT, "Error while initializing runspace: {0}", e);
         throw;          // if in separate thread, this causes server to crash
     }
 }