Table of Contents

Class ApplicationAuditValueDecision

Namespace
ReferenceApplication.Infrastructure.Data.Auditing
Assembly
ReferenceApplication.Infrastructure.dll

Describes how an audited property value should be represented.

public sealed record ApplicationAuditValueDecision : IEquatable<ApplicationAuditValueDecision>
Inheritance
ApplicationAuditValueDecision
Implements
Inherited Members

Constructors

ApplicationAuditValueDecision(ApplicationAuditValueDisposition, int?)

Describes how an audited property value should be represented.

public ApplicationAuditValueDecision(ApplicationAuditValueDisposition Disposition, int? MaximumLength = null)

Parameters

Disposition ApplicationAuditValueDisposition
MaximumLength int?

Properties

Disposition

public ApplicationAuditValueDisposition Disposition { get; init; }

Property Value

ApplicationAuditValueDisposition

HmacSha256Key

Gets the UTF-8 key used when Disposition is HmacSha256. Required for HMAC-SHA-256 and ignored for other dispositions.

public string? HmacSha256Key { get; init; }

Property Value

string

Include

public static ApplicationAuditValueDecision Include { get; }

Property Value

ApplicationAuditValueDecision

Mask

Gets a decision that records the property as changed while replacing its value with a fixed mask.

public static ApplicationAuditValueDecision Mask { get; }

Property Value

ApplicationAuditValueDecision

MaximumLength

public int? MaximumLength { get; init; }

Property Value

int?

Methods

HmacSha256(string)

Creates a decision that records an HMAC-SHA-256 digest using the supplied key.

public static ApplicationAuditValueDecision HmacSha256(string key)

Parameters

key string

Returns

ApplicationAuditValueDecision