Class AuditSettings
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven audit settings for a Cephalon app.
public sealed class AuditSettingsInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”AuditSettings(bool?, AuditHistorySettings?)
Section titled “ AuditSettings(bool?, AuditHistorySettings?)”Initializes a new instance of the
public AuditSettings(bool? enabled = null, AuditHistorySettings? history = null)Parameters
Section titled “Parameters”enabled bool?
Whether audit support was explicitly enabled.
history AuditHistorySettings?
The durable audit-history settings resolved for the app.
Properties
Section titled “Properties”Gets an empty audit-settings instance.
public static AuditSettings Empty { get; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets a value indicating whether audit support was explicitly enabled.
public bool? Enabled { get; }Property Value
Section titled “Property Value”bool?
HasValues
Section titled “ HasValues”Gets a value indicating whether any audit settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”History
Section titled “ History”Gets the durable audit-history settings resolved for the app.
public AuditHistorySettings History { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Reads audit settings from configuration.
public static AuditSettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The configuration source that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed audit settings.