示例#1
0
        /// <summary>
        /// Thread proc which runs the in-proc node.
        /// </summary>
        private void InProcNodeThreadProc()
        {
            Exception e;
            NodeEngineShutdownReason reason = _inProcNode.Run(out e);

            InProcNodeShutdown(reason, e);
        }
示例#2
0
        /// <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;
            }
        }
示例#3
0
        /// <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;
            }
        }