Interface ICleanupStore
A store that supports deleting old processed records.
Namespace: Chapar.Core.Cleanup
Assembly: Chapar.Core.dll
Syntax
public interface ICleanupStore
Methods
| Edit this page View SourceDeleteProcessedAsync(DateTime, CancellationToken)
Deletes all processed records older than the specified date. Returns the number of deleted records.
Declaration
Task<int> DeleteProcessedAsync(DateTime olderThan, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | olderThan | Cutoff date; records processed before this will be deleted. |
| CancellationToken | cancellationToken | Cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<int> | Number of deleted records. |