Skip to content

TransactionCommitter<TService> Methods

Enlists service operations as storage preconditions which execute during commit before the durable commit decision.

OnCommit(ITransactionCommitOperation<TService>)

View source
public Task OnCommit(ITransactionCommitOperation<TService> operation)
Enlists an operation to be applied when the current transaction commits.

Parameters

operationITransactionCommitOperation<TService>
The operation to enlist.

Returns

A task which represents the enlistment operation.

Participate(IGrainLifecycle)

View source
public void Participate(IGrainLifecycle lifecycle)
Adds the provided observer as a participant in the lifecycle.

Parameters

lifecycleIGrainLifecycle
The observer.