PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Transactions.​Model Namespace / Transaction­Policy­Expression­Functions Class / Transaction­Policy­Expression­Functions Methods

TransactionPolicyExpressionFunctions Methods

The TransactionPolicyExpressionFunctions type exposes the following members.

Public methodStatic memberMatches
Returns true if the string input matches the regex pattern.
Public methodStatic memberOnceEveryXSeconds
Returns true if the method has not returned true for the same key for a period of time.
Public methodStatic memberRandom
Returns true randomly, with a chance given by the threshold.
See Also