IReliableStateManager2.CreateTransaction(IsolationLevel) Method

Definition

Create and start a new transaction that can be used to group operations to be performed atomically with specified single read isolation level.

public Microsoft.ServiceFabric.Data.ITransaction CreateTransaction (Microsoft.ServiceFabric.Data.Beta.IsolationLevel singleEntityIsolationLevelForPrimaryReads);
abstract member CreateTransaction : Microsoft.ServiceFabric.Data.Beta.IsolationLevel -> Microsoft.ServiceFabric.Data.ITransaction
Public Function CreateTransaction (singleEntityIsolationLevelForPrimaryReads As IsolationLevel) As ITransaction

Parameters

singleEntityIsolationLevelForPrimaryReads
IsolationLevel

The transaction-wide single item read isolation level

Returns

A new transaction.

Remarks

Operations are added to the transaction by passing the ITransaction object in to reliable state methods. This does not apply to reads on secondaries

Applies to