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