Skip to content

ITransactionCommitOperation<TService> Methods

Defines an operation which is applied to a service when a transaction commits.

Commit(Guid, TService)

abstract
public abstract Task<bool> Commit(Guid transactionId, TService service)
Applies the operation to the service as part of committing the transaction.

Parameters

transactionIdGuid
The transaction identifier.
serviceTService
The service to which the operation is applied.

Returns

A task whose result is true when the operation completed and the transaction can be committed; otherwise, false.