共用方式為


ITransactionManager.PrepareAndCommit 方法

定義

TA 傳送至 TM 的要求。 TM 在認可或中止交易之後回應。

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)

參數

transactionId
Guid

要準備之交易的識別碼

accessCount
AccessCounter

此交易在此參與者上執行的讀取/寫入數目

timeStamp
DateTime

此交易的認可時間戳記

writerResources
List<ParticipantId>

在交易期間撰寫的參與者

totalParticipants
Int32

交易中的參與者總數

傳回

交易的狀態

適用於