Share via


TransactionRetryScope Members

Include Protected Members
Include Inherited Members

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information about Transient Fault Handling, see Transient Fault Handling.

The TransactionRetryScope type exposes the following members.

Constructors

  Name Description
Public method TransactionRetryScope(Action)
Initializes a new instance of the TransactionRetryScope class. Implements no retry policy, it just invokes the unit of work exactly once.
Public method TransactionRetryScope(RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified retry policy.
Public method TransactionRetryScope(Transaction, Action)
Initializes a new instance of the TransactionRetryScope class and sets the specified transaction as the ambient transaction, so that transactional work done inside the scope uses this transaction. Implements no retry policy, it just invokes the unit of work exactly once.
Public method TransactionRetryScope(TransactionScopeOption, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements. Implements no retry policy, it just invokes the unit of work exactly once.
Public method TransactionRetryScope(Transaction, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified retry policy and sets the specified transaction as the ambient transaction, so that transactional work done inside the scope uses this transaction.
Public method TransactionRetryScope(Transaction, TimeSpan, Action)
Initializes a new instance of the TransactionRetryScope class with the specified timeout value, and sets the specified transaction as the ambient transaction, so that transactional work done inside the scope uses this transaction. Implements no retry policy, it just invokes the unit of work exactly once.
Public method TransactionRetryScope(TransactionScopeOption, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements and retry policy. Uses the ReadCommitted isolation level by default.
Public method TransactionRetryScope(TransactionScopeOption, TimeSpan, Action)
Initializes a new instance of the TransactionRetryScope class with the specified timeout value and requirements. Implements no retry policy, it just invokes the unit of work exactly once.
Public method TransactionRetryScope(TransactionScopeOption, TransactionOptions, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements. Implements no retry policy, it just invokes the unit of work exactly once.
Public method TransactionRetryScope(Transaction, TimeSpan, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified timeout value, and sets the specified transaction as the ambient transaction, so that transactional work done inside the scope uses this transaction. Uses the with the specified retry policy.
Public method TransactionRetryScope(TransactionScopeOption, TimeSpan, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified timeout value, transaction scope options and retry policy. Uses the ReadCommitted isolation level by default.
Public method TransactionRetryScope(TransactionScopeOption, TransactionOptions, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements and specified retry policy.

Methods

  Name Description
Public method Complete
Indicates that all operations within the scope are completed successfully.
Public method Dispose
Ends the transaction scope.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method InvokeUnitOfWork
Executes the underlying unit of work and retries as prescribed by the current retry policy.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property RetryPolicy
Gets the policy which defines whether to retry the execution of the entire scope should a transient fault be encountered.

See Also

TransactionRetryScope Class

Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.SqlAzure Namespace