Class AuditableResult<TResult>
Represents a result that includes an optional audit message.
public sealed class AuditableResult<TResult>
Type Parameters
TResultThe 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
resultTResultThe result value.
auditMessagestringAn optional audit message associated with the result.
Properties
AuditMessage
Gets or sets the optional audit message.
public string? AuditMessage { get; set; }
Property Value
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.