Class AuditStorageModes
- Namespace
- ProjectTemplate.Infrastructure.Data.Auditing
- Assembly
- ProjectTemplate.Infrastructure.dll
Defines supported audit storage mode names for application data access.
public static class AuditStorageModes
- Inheritance
-
AuditStorageModes
- Inherited Members
Fields
ExternalSink
Indicates that a consuming application intends to route audit records through a custom external sink.
public const string ExternalSink = "ExternalSink"
Field Value
Local
Stores audit records in the application database through the local EF Core audit record table.
public const string Local = "Local"
Field Value
Outbox
Indicates that a consuming application intends to route audit records through an outbox-style store.
public const string Outbox = "Outbox"
Field Value
Methods
IsLocal(string?)
Determines whether the supplied storage mode uses the default local audit record table.
public static bool IsLocal(string? storageMode)
Parameters
storageModestring
Returns
IsSupported(string?)
Determines whether the supplied storage mode is one of the supported mode names.
public static bool IsSupported(string? storageMode)
Parameters
storageModestring
Returns
Normalize(string?)
Normalizes a configured storage mode value for comparison and logging.
public static string Normalize(string? storageMode)
Parameters
storageModestring