diff --git a/src/DurableTask.Core/PurgeResult.cs b/src/DurableTask.Core/PurgeResult.cs index ddde99954..dcde66fd8 100644 --- a/src/DurableTask.Core/PurgeResult.cs +++ b/src/DurableTask.Core/PurgeResult.cs @@ -27,9 +27,28 @@ public PurgeResult(int deletedInstanceCount) this.DeletedInstanceCount = deletedInstanceCount; } + /// + /// Initializes a new instance of the class. + /// + /// The number of instances deleted. + /// 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. + public PurgeResult(int deletedInstanceCount, bool? isComplete) + { + this.DeletedInstanceCount = deletedInstanceCount; + this.IsComplete = isComplete; + } + /// /// Number of instances deleted during this execution of the purge operation. /// public int DeletedInstanceCount { get; } + + /// + /// Gets a value indicating whether the purge operation is complete. + /// + public bool? IsComplete { get; } } } \ No newline at end of file