PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Source Class / Log­Source Methods / Log­Source.​Apply­Transaction­Requirements Method

LogSource.ApplyTransactionRequirements Method

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>(T, OpenActivityOptions). It is not automatically called.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: (
public void ApplyTransactionRequirements(
	ref OpenActivityOptions openActivityOptions


Type: PostSharp.Patterns.Diagnostics.OpenActivityOptions
The options of the activity to be opened. This method updates the TransactionRequirement property of this parameter.
See Also