Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/DurableTask.Core/PurgeResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,28 @@ public PurgeResult(int deletedInstanceCount)
this.DeletedInstanceCount = deletedInstanceCount;
}

/// <summary>
/// Initializes a new instance of the <see cref="PurgeResult" /> class.
/// </summary>
/// <param name="deletedInstanceCount">The number of instances deleted.</param>
/// <param name="isComplete">A value indicating whether the purge operation is complete.
/// If true, the purge operation is complete. All instances were purged.
/// If false, not all instances were purged. Please purge again.
/// If null, whether or not all instances were purged is undefined.</param>
public PurgeResult(int deletedInstanceCount, bool? isComplete)
{
this.DeletedInstanceCount = deletedInstanceCount;
this.IsComplete = isComplete;
}

/// <summary>
/// Number of instances deleted during this execution of the purge operation.
/// </summary>
public int DeletedInstanceCount { get; }

/// <summary>
/// Gets a value indicating whether the purge operation is complete.
/// </summary>
public bool? IsComplete { get; }
}
}
Loading