Table of Contents

Interface IErasureContributor

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

A pluggable contributor that participates in GDPR erasure execution.

public interface IErasureContributor

Remarks

Erasure contributors are invoked by IErasureService during ExecuteAsync to erase data from additional stores (event stores, snapshot stores, caches, etc.) beyond the core cryptographic key deletion.

This follows the Microsoft IHealthCheckPublisher pattern: a minimal interface that allows frameworks to plug additional erasure logic into the compliance pipeline without coupling the core service to specific stores.

Register implementations via DI as IErasureContributor. Multiple contributors can be registered and will be invoked sequentially.

Properties

CoveredStoreKinds

Gets the set of store kinds this contributor erases.

IReadOnlySet<DataStoreKind> CoveredStoreKinds { get; }

Property Value

IReadOnlySet<DataStoreKind>

The store kinds covered by this contributor; never null.

Remarks

The erasure coverage gate uses this to mark a discovered DataLocation as Covered when its StoreKind is in this set. Must never contain Unknown — the unclassified kind is never coverable.

Name

Gets the display name of this contributor for logging and diagnostics.

string Name { get; }

Property Value

string

A human-readable name such as "EventStore" or "SnapshotStore".

Methods

EraseAsync(ErasureContributorContext, CancellationToken)

Erases data for the specified erasure request.

Task<ErasureContributorResult> EraseAsync(ErasureContributorContext context, CancellationToken cancellationToken)

Parameters

context ErasureContributorContext

The erasure context with request details.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ErasureContributorResult>

The result of this contributor's erasure operation.