MetalamaAPI documentationFlashtrace APIFlashtrace.​TransactionsTransaction­Requirement
Open sandboxFocus

TransactionRequirement Class

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

Inheritance
System.Object
TransactionRequirement
Namespace: Flashtrace.Transactions
Assembly: Flashtrace.dll
Syntax
public sealed class TransactionRequirement : ValueType

Properties

Name Description
DeterministicTransaction

Gets a TransactionRequirement representing the request to open a transaction based on a deterministic policy (without sampling).

IsSampled

Gets a value indicating whether the transaction must be opened based on a sampling policy.

NoTransaction

Gets a TransactionRequirement representing the absence of request to open a transaction.

RequiresTransaction

Gets a value indicating whether the activity requires a transaction to be opened.

SampledTransaction

Gets a TransactionRequirement representing the request to open a transaction based on a sampling policy.

Methods

Name Description
ToString()
WithRequiresTransaction(Boolean)

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.