PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Transactions Namespace / ITransaction­Policy Interface

ITransactionPolicy Interface

Determines the verbosity of a transaction and what should be done when the transaction is closed. One policy usually handles many transactions.

Namespace:  PostSharp.Patterns.Diagnostics.Transactions
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public interface ITransactionPolicy

The ITransactionPolicy type exposes the following members.

Properties
  NameDescription
Public propertyName
Gets the policy name. This is optional but useful for debugging and diagnostics.
Public propertyVerbosity
Specifies the verbosity of logging for all transactions assigned to this policy.
Methods
  NameDescription
Public methodEvaluateExtendedCloseExpression<T>
Evaluates an expression defined as an extended property (typically an XML attribute) where the argument of the expression in an CloseTransactionExpressionModel.
Public methodEvaluateExtendedOpenExpression<T>
Evaluates an expression defined as an extended property (typically an XML attribute) where the argument of the expression in an OpenTransactionExpressionModel.
Public methodGetExtendedProperty
Gets an extended property defined by the policy (typically an XML attribute) and specific to the back-end.
See Also