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

LogSource.ApplyTransactionRequirements Method

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.

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

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