Skip to content

ITransactionAgent.StartTransaction(bool, TimeSpan)

StartTransaction(bool, TimeSpan)

abstract
public abstract Task<TransactionInfo> StartTransaction(bool readOnly, TimeSpan timeout)
Starts a new transaction

Parameters

readOnlybool
Whether it is a read-only transaction
timeoutTimeSpan
Transaction is automatically aborted if it does not complete within this time

Returns

Info of the new transaction