Interface IRetentionEnforcementService
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Provides data retention policy enforcement based on RetentionDays.
public interface IRetentionEnforcementService
Remarks
This service enforces the retention periods of the PersonalDataAttribute-annotated types the host has explicitly declared in scope, by handing them to the registered IRetentionContributor implementations. Types the host has not declared are never in scope, whether or not they are annotated or loaded.
Methods
EnforceRetentionAsync(CancellationToken)
Enforces the declared retention policies by invoking the registered contributors.
Task<RetentionEnforcementResult> EnforceRetentionAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<RetentionEnforcementResult>
The result of the enforcement scan.
GetRetentionPoliciesAsync(CancellationToken)
Gets the retention policies the host has declared in scope.
Task<IReadOnlyList<RetentionPolicy>> GetRetentionPoliciesAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<RetentionPolicy>>
A collection of active retention policies.