TransactionRequirement Structure |
Namespace: PostSharp.Patterns.Diagnostics.Transactions
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
public readonly struct TransactionRequirement
The TransactionRequirement type exposes the following members.
Name | Description | |
---|---|---|
DeterministicTransaction |
Represents the request to open a transaction based on a deterministic policy (without sampling).
| |
IsSampled |
Determines whether the transaction must be opened based on a sampling policy.
| |
NoTransaction |
Represents the absence of request to open a transaction.
| |
RequiresTransaction |
Determines whether the activity requires a transaction to be opened.
| |
SampledTransaction |
Represents the request to open a transaction based on a sampling policy.
|
Name | Description | |
---|---|---|
ToString | Returns the fully qualified type name of this instance. (Overrides ValueType.ToString().) | |
WithRequiresTransaction |
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.
|