Skip to content

TransactionalResourceExtension.Prepare(string, Guid, AccessCounter, DateTime, ParticipantId)

Prepare(string, Guid, AccessCounter, DateTime, ParticipantId)

View source
public Task Prepare(string resourceId, Guid transactionId, AccessCounter accessCount, DateTime timeStamp, ParticipantId transactionManager)
Prepares the specified resource to commit a transaction.

Parameters

resourceIdstring
The identifier of the transactional resource.
transactionIdGuid
The transaction identifier.
accessCountAccessCounter
The number of reads and writes performed on the resource by the transaction.
timeStampDateTime
The transaction commit timestamp.
transactionManagerParticipantId
The transaction manager coordinating the transaction.

Returns

A task which represents the one-way operation.