PostSharp 6.9 / / 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.

Methods
  NameDescription
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