Skip to content

Class AuditHistoryRetentionSettings

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven retention settings for durable audit history.

public sealed class AuditHistoryRetentionSettings

objectAuditHistoryRetentionSettings

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

AuditHistoryRetentionSettings(bool?, int?, int?, bool?, int?)

Section titled “ AuditHistoryRetentionSettings(bool?, int?, int?, bool?, int?)”

Initializes a new instance of the class.

public AuditHistoryRetentionSettings(bool? enabled = null, int? maxAgeDays = null, int? deleteBatchSize = null, bool? applyOnStartup = null, int? runIntervalMinutes = null)

enabled bool?

Whether retention was explicitly enabled.

maxAgeDays int?

The maximum age, in days, to retain durable audit rows.

deleteBatchSize int?

The maximum number of rows deleted per retention batch.

applyOnStartup bool?

Whether one retention pass should run during host startup.

runIntervalMinutes int?

The optional recurring retention interval in minutes.

Gets the default delete-batch size used by the engine-owned retention baseline.

public const int DefaultDeleteBatchSize = 500

int

Gets a value indicating whether one retention pass should run during host startup.

public bool? ApplyOnStartup { get; }

bool?

Gets the maximum number of rows deleted per retention batch.

public int? DeleteBatchSize { get; }

int?

Gets an empty audit-history retention settings instance.

public static AuditHistoryRetentionSettings Empty { get; }

AuditHistoryRetentionSettings

Gets a value indicating whether retention was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets a value indicating whether any retention settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the maximum age, in days, to retain durable audit rows.

public int? MaxAgeDays { get; }

int?

Gets the optional recurring retention interval in minutes.

public int? RunIntervalMinutes { get; }

int?

Reads retention settings from the supplied configuration section.

public static AuditHistoryRetentionSettings FromSection(IConfigurationSection? section)

section IConfigurationSection?

The retention configuration section to read.

AuditHistoryRetentionSettings

The parsed retention settings.