Table of Contents

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

string

Local

Stores audit records in the application database through the local EF Core audit record table.

public const string Local = "Local"

Field Value

string

Outbox

Indicates that a consuming application intends to route audit records through an outbox-style store.

public const string Outbox = "Outbox"

Field Value

string

Methods

IsLocal(string?)

Determines whether the supplied storage mode uses the default local audit record table.

public static bool IsLocal(string? storageMode)

Parameters

storageMode string

Returns

bool

IsSupported(string?)

Determines whether the supplied storage mode is one of the supported mode names.

public static bool IsSupported(string? storageMode)

Parameters

storageMode string

Returns

bool

Normalize(string?)

Normalizes a configured storage mode value for comparison and logging.

public static string Normalize(string? storageMode)

Parameters

storageMode string

Returns

string