Condividi tramite


ITransactionAgent.StartTransaction(Boolean, TimeSpan) Metodo

Definizione

Avvia una nuova transazione

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)

Parametri

readOnly
Boolean

Indica se si tratta di una transazione di sola lettura

timeout
TimeSpan

La transazione viene interrotta automaticamente se non viene completata entro questo periodo

Restituisce

Informazioni sulla nuova transazione

Si applica a