Düzenle

Aracılığıyla paylaş


ITransactionManager.PrepareAndCommit Method

Definition

Request sent by TA to TM. The TM responds after committing or aborting the transaction.

public System.Threading.Tasks.Task<Orleans.Transactions.TransactionalStatus> PrepareAndCommit (Guid transactionId, Orleans.Transactions.Abstractions.AccessCounter accessCount, DateTime timeStamp, System.Collections.Generic.List<Orleans.Transactions.ParticipantId> writerResources, int totalParticipants);
abstract member PrepareAndCommit : Guid * Orleans.Transactions.Abstractions.AccessCounter * DateTime * System.Collections.Generic.List<Orleans.Transactions.ParticipantId> * int -> System.Threading.Tasks.Task<Orleans.Transactions.TransactionalStatus>
Public Function PrepareAndCommit (transactionId As Guid, accessCount As AccessCounter, timeStamp As DateTime, writerResources As List(Of ParticipantId), totalParticipants As Integer) As Task(Of TransactionalStatus)

Parameters

transactionId
Guid

the id of the transaction to prepare

accessCount
AccessCounter

number of reads/writes performed on this participant by this transaction

timeStamp
DateTime

the commit timestamp for this transaction

writerResources
List<ParticipantId>

the participants who wrote during the transaction

totalParticipants
Int32

the total number of participants in the transaction

Returns

the status of the transaction

Applies to