Table of Contents

Class AuditableResult<TResult>

Namespace
Excalibur.A3.Audit
Assembly
Excalibur.A3.dll

Represents a result that includes an optional audit message.

public sealed class AuditableResult<TResult>

Type Parameters

TResult

The type of the result value.

Inheritance
AuditableResult<TResult>
Inherited Members

Constructors

AuditableResult(TResult, string?)

Represents a result that includes an optional audit message.

public AuditableResult(TResult result, string? auditMessage = null)

Parameters

result TResult

The result value.

auditMessage string

An optional audit message associated with the result.

Properties

AuditMessage

Gets or sets the optional audit message.

public string? AuditMessage { get; set; }

Property Value

string

The optional audit message, or null if not provided.

Result

Gets or sets the result value.

public TResult Result { get; set; }

Property Value

TResult

The result value of type TResult.

Methods

ToString()

Returns a string representation of the result or the audit message.

public override string ToString()

Returns

string

The audit message if it is not null or empty; otherwise, the string representation of the result.