OperationContextExtensions
Namespace: MJCZone.DapperMatic.AspNetCore
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Extension methods for OperationContext.
static public
Contents
Methods (5)
Methods
ToAuditEvent
Converts the operation context to an audit event.
csharp
DapperMaticAuditEvent ToAuditEvent(
IOperationContext context,
bool success,
string message)Parameters
- context (IOperationContext) - The operation context.
- success (bool) - Indicates if the operation was successful.
- message (string) - Optional message describing the operation outcome.
Returns
Type: DapperMaticAuditEvent
The corresponding audit event.
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()