Class AuditRuntimeOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Audit.Configuration
Assembly: Cephalon.Audit.dll
Describes host-agnostic runtime options for the Cephalon audit companion pack.
public sealed class AuditRuntimeOptionsInheritance
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”AuditRuntimeOptions(int)
Section titled “ AuditRuntimeOptions(int)”Initializes a new instance of the
public AuditRuntimeOptions(int inMemoryBufferCapacity = 1024)Parameters
Section titled “Parameters”inMemoryBufferCapacity int
The maximum number of audit entries retained by the default in-memory writer.
Properties
Section titled “Properties”EnableInMemoryWriter
Section titled “ EnableInMemoryWriter”Gets or sets a value indicating whether the built-in in-memory audit writer should remain active.
public bool EnableInMemoryWriter { get; set; }Property Value
Section titled “Property Value”InMemoryBufferCapacity
Section titled “ InMemoryBufferCapacity”Gets or sets the maximum number of audit entries retained by the default in-memory writer.
public int InMemoryBufferCapacity { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration?, string)
Section titled “ FromConfiguration(IConfiguration?, string)”Reads audit runtime options from configuration.
public static AuditRuntimeOptions FromConfiguration(IConfiguration? configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration?
The root configuration that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed audit runtime options.