Table of Contents

Class ApplicationAuditedTransactionResult

Namespace
ProjectTemplate.Infrastructure.Data.Auditing
Assembly
ProjectTemplate.Infrastructure.dll

Summarizes an audited transaction execution without exposing audited entity values.

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

Constructors

ApplicationAuditedTransactionResult(int, int, ApplicationMutationAuditReceipt?, ApplicationAuditedTransactionOwnership, bool)

Summarizes an audited transaction execution without exposing audited entity values.

public ApplicationAuditedTransactionResult(int MutationSaveChangesCount, int CompletionSaveChangesCount, ApplicationMutationAuditReceipt? AuditReceipt, ApplicationAuditedTransactionOwnership Ownership, bool UsedSavepoint)

Parameters

MutationSaveChangesCount int

The number of state entries written by the mutation save.

CompletionSaveChangesCount int

The number of state entries written by the optional local completion save.

AuditReceipt ApplicationMutationAuditReceipt

The mutation audit receipt produced by the mutation save, when auditing produced a batch.

Ownership ApplicationAuditedTransactionOwnership

The database transaction ownership model used for the execution.

UsedSavepoint bool

Whether the coordinator created a savepoint inside an existing transaction.

Properties

AuditReceipt

The mutation audit receipt produced by the mutation save, when auditing produced a batch.

public ApplicationMutationAuditReceipt? AuditReceipt { get; init; }

Property Value

ApplicationMutationAuditReceipt

CommittedByCoordinator

Gets a value indicating whether the coordinator committed the database transaction before returning.

public bool CommittedByCoordinator { get; }

Property Value

bool

CompletionSaveChangesCount

The number of state entries written by the optional local completion save.

public int CompletionSaveChangesCount { get; init; }

Property Value

int

MutationSaveChangesCount

The number of state entries written by the mutation save.

public int MutationSaveChangesCount { get; init; }

Property Value

int

Ownership

The database transaction ownership model used for the execution.

public ApplicationAuditedTransactionOwnership Ownership { get; init; }

Property Value

ApplicationAuditedTransactionOwnership

RequiresOuterCommit

Gets a value indicating whether the caller must still commit the existing outer transaction.

public bool RequiresOuterCommit { get; }

Property Value

bool

UsedSavepoint

Whether the coordinator created a savepoint inside an existing transaction.

public bool UsedSavepoint { get; init; }

Property Value

bool