PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​TransactionsITransaction­Policy
Open sandboxFocus

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.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 CloseTransactionExpressionModel.

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 OpenTransactionExpressionModel.

GetExtendedProperty(String, String)

Gets an extended property defined by the policy (typically an XML attribute) and specific to the back-end.