fix: Make CheckpointInfo constructor public (#1156)

In order to be able to restore checkpoints (and even implement ICheckpointStore)
This commit is contained in:
Jacob Alber
2025-10-03 11:42:04 -04:00
committed by GitHub
Unverified
parent 6a4e759965
commit cfcb90bfe0
@@ -29,8 +29,13 @@ public sealed class CheckpointInfo : IEquatable<CheckpointInfo>
/// hexadecimal format and sets the timestamp to the current UTC time.</remarks>
internal CheckpointInfo(string runId) : this(runId, Guid.NewGuid().ToString("N")) { }
/// <summary>
/// Initializes a new instance of the CheckpointInfo class with the specified run and checkpoint identifiers.
/// </summary>
/// <param name="runId">The unique identifier for the run. Cannot be null or empty.</param>
/// <param name="checkpointId">The unique identifier for the checkpoint. Cannot be null or empty.</param>
[JsonConstructor]
internal CheckpointInfo(string runId, string checkpointId)
public CheckpointInfo(string runId, string checkpointId)
{
this.RunId = Throw.IfNullOrEmpty(runId);
this.CheckpointId = Throw.IfNullOrEmpty(checkpointId);