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

TransactionPolicyExpressionFunctions Class

Contains extra functions usable from predicates in XML policy configuration files.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.Transactions.Model.TransactionPolicyExpressionFunctions

Namespace:  PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly:  PostSharp.Patterns.Diagnostics.Configuration (in PostSharp.Patterns.Diagnostics.Configuration.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public static class TransactionPolicyExpressionFunctions

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