/// <summary> /// Factory for deserialization. /// </summary> internal static NodeBuildComplete FactoryForDeserialization(ITranslator translator) { NodeBuildComplete packet = new NodeBuildComplete(); packet.Translate(translator); return(packet); }
/// <summary> /// Handles the NodeBuildComplete packet. /// </summary> private void HandleNodeBuildComplete(NodeBuildComplete buildComplete) { ErrorUtilities.VerifyThrow(!_isTaskExecuting, "We should never have a task in the process of executing when we receive NodeBuildComplete."); _shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; _shutdownEvent.Set(); }
/// <summary> /// Factory for deserialization. /// </summary> internal static NodeBuildComplete FactoryForDeserialization(INodePacketTranslator translator) { NodeBuildComplete packet = new NodeBuildComplete(); packet.Translate(translator); return packet; }
/// <summary> /// Handles the NodeBuildComplete packet. /// </summary> private void HandleNodeBuildComplete(NodeBuildComplete buildComplete) { _shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; _shutdownEvent.Set(); }