GetPolicy(in TransactionProperties, bool)
Gets the policy that determines whether an activity should be a logged transaction, and other details about the transaction.
Declaration
ITransactionPolicy GetPolicy(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 |
---|---|
ITransactionPolicy | Policy to apply to the activity. |
Remarks
This method must ignore any sampling policy since they have already been evaluated by GetTransactionRequirement(in TransactionProperties, bool).