PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLog­SourceApply­Transaction­Requirements
Open sandboxFocus

Method ApplyTransactionRequirements

ApplyTransactionRequirements(ref OpenActivityOptions)

Evaluates whether a transaction needs to be open for a specified OpenActivityOptions and updates its TransactionRequirement property. This method must be invoked before calling OpenActivity<T>(in T, in OpenActivityOptions). It is not automatically called.

Declaration
public void ApplyTransactionRequirements(ref OpenActivityOptions openActivityOptions)
Parameters
Type Name Description
OpenActivityOptions openActivityOptions

The options of the activity to be opened. This method updates the TransactionRequirement property of this parameter.