Skip to content

Class AuditSettings

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

Describes configuration-driven audit settings for a Cephalon app.

public sealed class AuditSettings

objectAuditSettings

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

AuditSettings(bool?, AuditHistorySettings?)

Section titled “ AuditSettings(bool?, AuditHistorySettings?)”

Initializes a new instance of the class.

public AuditSettings(bool? enabled = null, AuditHistorySettings? history = null)

enabled bool?

Whether audit support was explicitly enabled.

history AuditHistorySettings?

The durable audit-history settings resolved for the app.

Gets an empty audit-settings instance.

public static AuditSettings Empty { get; }

AuditSettings

Gets a value indicating whether audit support was explicitly enabled.

public bool? Enabled { get; }

bool?

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

public bool HasValues { get; }

bool

Gets the durable audit-history settings resolved for the app.

public AuditHistorySettings History { get; }

AuditHistorySettings

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Reads audit settings from configuration.

public static AuditSettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")

configuration IConfiguration

The configuration source that contains the engine section.

sectionPath string

The root configuration section path to read from.

AuditSettings

The parsed audit settings.