PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Transactions.​ModelTransaction­Policy­Expression­Functions
Open sandboxFocus

TransactionPolicyExpressionFunctions Class

Contains extra functions usable from predicates in XML policy configuration files.

Inheritance
TransactionPolicyExpressionFunctions
Namespace: PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly: PostSharp.Patterns.Diagnostics.Configuration.dll
Syntax
public static class TransactionPolicyExpressionFunctions : Object

Methods

Name Description
Matches(String, String)

Returns true if the string input matches the regex pattern.

OnceEveryXSeconds(Double, String)

Returns true if the method has not returned true for the same key for a period of time.

Random(Double)

Returns true randomly, with a chance given by the threshold.