PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Transactions Namespace / Transaction­Requirement Structure

TransactionRequirement Structure

Represents the decision whether, why and how a transaction must be opened for an activity.

Namespace:  PostSharp.Patterns.Diagnostics.Transactions
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public readonly struct TransactionRequirement

The TransactionRequirement type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberDeterministicTransaction
Represents the request to open a transaction based on a deterministic policy (without sampling).
Public propertyIsSampled
Determines whether the transaction must be opened based on a sampling policy.
Public propertyStatic memberNoTransaction
Represents the absence of request to open a transaction.
Public propertyRequiresTransaction
Determines whether the activity requires a transaction to be opened.
Public propertyStatic memberSampledTransaction
Represents the request to open a transaction based on a sampling policy.
Methods
  NameDescription
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueType.ToString().)
Public methodWithRequiresTransaction
Returns a copy of the current TransactionRequirement but with a different value of RequiresTransaction. Specifically, this method preserves the IsSampled property if the value parameter is true.
See Also