InitRunSpace() 개인적인 메소드

private InitRunSpace ( ) : System.Management.Automation.Runspaces.Runspace
리턴 System.Management.Automation.Runspaces.Runspace
예제 #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
     }
 }
예제 #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
     }
 }