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.dll
Syntax
public interface ITransactionPolicy
Properties
Name | Description |
---|---|
Name | Gets the policy name. This is optional but useful for debugging and diagnostics. |
Verbosity | Specifies the verbosity of logging for all transactions assigned to this policy. |
Methods
Name | Description |
---|---|
EvaluateExtendedCloseExpression<T>(string, LoggingTransaction, T, ExtendedTransactionExpressionOptions) | Evaluates an expression defined as an extended property (typically an XML attribute) where
the argument of the expression in an |
EvaluateExtendedOpenExpression<T>(string, in TransactionProperties, T, ExtendedTransactionExpressionOptions) | Evaluates an expression defined as an extended property (typically an XML attribute) where
the argument of the expression in an |
GetExtendedProperty(string, string) | Gets an extended property defined by the policy (typically an XML attribute) and specific to the back-end. |