GetTransactionRequirement(in TransactionProperties, bool)
Determines whether an activity should result in opening a transaction.
Declaration
TransactionRequirement GetTransactionRequirement(in TransactionProperties properties, bool throwing = false)
Parameters
Type | Name | Description |
---|---|---|
TransactionProperties | properties | Properties, especially of the activity that's creating a transaction. |
bool | throwing |
|
Returns
Type | Description |
---|---|
TransactionRequirement | Policy to apply to the activity. |
Remarks
This method must apply sampling policies, if any.