Contains extra functions usable from predicates in XML policy configuration files.
Namespace: PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly: PostSharp.Patterns.Diagnostics.Configuration.dll
Syntax
public static class TransactionPolicyExpressionFunctionsRemarks
The if and sample expressions are interpreted by Dynamic Expresso, an expression engine that emulates C#.
Call these functions without the class name, for example Matches(t.Request.Path, "^/invoices"). Matches(string, string) is
available in both expressions, while the sampling functions Random(double) and OnceEveryXSeconds(double, string) are available
only in the sample expression and in extended expressions evaluated with AllowSamplingFunctions.
Methods
| Name | Description |
|---|---|
| Matches(string, string) | Returns |
| OnceEveryXSeconds(double, string) | Returns |
| Random(double) | Returns |