Interface ICascadeErasureService
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Provides cascade erasure capabilities that walk relationship graphs to erase all related data subjects.
public interface ICascadeErasureService
Remarks
Cascade erasure extends the standard erasure service by discovering related data subjects through an ICascadeRelationshipResolver and erasing their data as well. This supports GDPR scenarios where erasure of a primary subject must propagate to related records.
Methods
EraseWithCascadeAsync(string, CascadeErasureOptions, CancellationToken)
Erases data for a subject and all related subjects discovered via relationship traversal.
Task<CascadeErasureResult> EraseWithCascadeAsync(string subjectId, CascadeErasureOptions options, CancellationToken cancellationToken)
Parameters
subjectIdstringThe primary data subject identifier.
optionsCascadeErasureOptionsOptions controlling cascade behavior.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<CascadeErasureResult>
The result of the cascade erasure operation.
Exceptions
- ArgumentException
Thrown when
subjectIdis null or whitespace.