/// <summary> /// Thread proc which runs the in-proc node. /// </summary> private void InProcNodeThreadProc() { Exception e; NodeEngineShutdownReason reason = _inProcNode.Run(out e); InProcNodeShutdown(reason, e); }
/// <summary> /// Callback invoked when the endpoint shuts down. /// </summary> /// <param name="reason">The reason the endpoint is shutting down.</param> /// <param name="e">Any exception which was raised that caused the endpoint to shut down.</param> private void InProcNodeShutdown(NodeEngineShutdownReason reason, Exception e) { switch (reason) { case NodeEngineShutdownReason.BuildComplete: case NodeEngineShutdownReason.BuildCompleteReuse: case NodeEngineShutdownReason.Error: break; case NodeEngineShutdownReason.ConnectionFailed: ErrorUtilities.ThrowInternalError("Unexpected shutdown code {0} received.", reason); break; } }