Udostępnij za pośrednictwem


TransactionRetryScope Members

Include Protected Members
Include Inherited Members

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, but just invokes the unit of work exactly once.
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 performed inside the scope uses this transaction. Implements no retry policy, but 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, but 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, 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 performed inside the scope uses this transaction.
Public method TransactionRetryScope(Transaction, TimeSpan, Action)
Initializes a new instance of the TransactionRetryScope class with the specified time-out value, and sets the specified transaction as the ambient transaction, so that transactional work performed inside the scope uses this transaction. Implements no retry policy, but 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 time-out value and requirements. Implements no retry policy, but 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, but 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 time-out value, and sets the specified transaction as the ambient transaction, so that transactional work performed inside the scope uses this transaction. Uses the specified retry policy.
Public method TransactionRetryScope(TransactionScopeOption, TimeSpan, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified time-out 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 retry policy.

Methods

  Name Description
Public method Complete
Indicates that all operations within the scope have been 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 try to free resources and perform other cleanup operations before it 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 that determines whether to retry the execution of the entire scope if a transient fault is encountered.

See Also

TransactionRetryScope Class

Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace