ITransactionAgent.StartTransaction(Boolean, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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