Table of Contents

Class RetentionContributorContext

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

Context supplied to an IRetentionContributor for a single enforcement pass.

public sealed record RetentionContributorContext : IEquatable<RetentionContributorContext>
Inheritance
RetentionContributorContext
Implements
Inherited Members

Properties

AsOf

Gets the timestamp the enforcement pass is evaluated against. Records whose (last-modified + retention period) is at or before this instant are expired.

public required DateTimeOffset AsOf { get; init; }

Property Value

DateTimeOffset

DryRun

Gets a value indicating whether this is a dry run (no data should be deleted).

public required bool DryRun { get; init; }

Property Value

bool

Policies

Gets the retention policies of the types the host has declared in scope. A contributor must not delete data of any type absent from this list.

public required IReadOnlyList<RetentionPolicy> Policies { get; init; }

Property Value

IReadOnlyList<RetentionPolicy>