Skip to content

Class AuditHistorySettings

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

Describes configuration-driven durable audit-history settings for a Cephalon app.

public sealed class AuditHistorySettings

objectAuditHistorySettings

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

AuditHistorySettings(bool?, string?, string?, AuditHistoryExportSettings?, AuditHistoryRetentionSettings?)

Section titled “ AuditHistorySettings(bool?, string?, string?, AuditHistoryExportSettings?, AuditHistoryRetentionSettings?)”

Initializes a new instance of the class.

public AuditHistorySettings(bool? enabled = null, string? provider = null, string? databaseRole = null, AuditHistoryExportSettings? export = null, AuditHistoryRetentionSettings? retention = null)

enabled bool?

Whether durable audit history was explicitly enabled.

provider string?

The selected durable history provider identifier.

databaseRole string?

The selected logical database role for durable history.

export AuditHistoryExportSettings?

The configured export settings for durable history.

retention AuditHistoryRetentionSettings?

The selected retention settings for durable history.

Gets the default logical database role used by the durable audit-history path.

public const string DefaultDatabaseRole = "history"

string

Gets the selected logical database role used by durable history.

public string? DatabaseRole { get; }

string?

Gets an empty audit-history settings instance.

public static AuditHistorySettings Empty { get; }

AuditHistorySettings

Gets a value indicating whether durable audit history was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets the configured export settings for durable history.

public AuditHistoryExportSettings Export { get; }

AuditHistoryExportSettings

Gets a value indicating whether any durable audit-history settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the selected durable history provider identifier.

public string? Provider { get; }

string?

Gets the configured retention settings for durable history.

public AuditHistoryRetentionSettings Retention { get; }

AuditHistoryRetentionSettings

Reads durable audit-history settings from the supplied configuration section.

public static AuditHistorySettings FromSection(IConfigurationSection? section)

section IConfigurationSection?

The audit-history configuration section to read.

AuditHistorySettings

The parsed durable audit-history settings.