Skip to content

ITransactionalResourceExtension.CommitReadOnly(string, Guid, AccessCounter, DateTime, CancellationToken)

CommitReadOnly(string, Guid, AccessCounter, DateTime, CancellationToken)

virtual
View source
[Orleans.Concurrency.AlwaysInterleave]
[Orleans.Transaction(0)]
[Orleans.Alias(1BB071FE)]
public virtual Task<TransactionalStatus> CommitReadOnly(string resourceId, Guid transactionId, AccessCounter accessCount, DateTime timeStamp, CancellationToken cancellationToken)
Commits a read-only transaction on the specified resource.

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.
cancellationTokenCancellationToken
The token used to cancel the operation.

Returns

A task whose result is the transaction status reported by the resource.