Edit

Share via


ITransactionAgent.StartTransaction(Boolean, TimeSpan) Method

Definition

Starts a new transaction

public System.Threading.Tasks.Task<Orleans.Transactions.ITransactionInfo> StartTransaction (bool readOnly, TimeSpan timeout);
public System.Threading.Tasks.Task<Orleans.Transactions.TransactionInfo> StartTransaction (bool readOnly, TimeSpan timeout);
abstract member StartTransaction : bool * TimeSpan -> System.Threading.Tasks.Task<Orleans.Transactions.ITransactionInfo>
abstract member StartTransaction : bool * TimeSpan -> System.Threading.Tasks.Task<Orleans.Transactions.TransactionInfo>
Public Function StartTransaction (readOnly As Boolean, timeout As TimeSpan) As Task(Of ITransactionInfo)
Public Function StartTransaction (readOnly As Boolean, timeout As TimeSpan) As Task(Of TransactionInfo)

Parameters

readOnly
Boolean

Whether it is a read-only transaction

timeout
TimeSpan

Transaction is automatically aborted if it does not complete within this time

Returns

Info of the new transaction

Applies to