Click or drag to resize

PatternsGuard Method

Guard pattern expression guards a sub-expression, equivalent to the "every MyEvent where timer:within(1 sec)" syntax

Namespace:  com.espertech.esper.common.client.soda
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
public static PatternGuardExpr Guard(
	string namespace,
	string name,
	Expression[] parameters,
	PatternExpr guarded
)

Parameters

namespace
Type: SystemString
is the guard objects namespace, i.e. "timer"
name
Type: SystemString
is the guard objects name, i.e. ""within"
parameters
Type: com.espertech.esper.common.client.sodaExpression
is the guard objects optional parameters, i.e. integer 1 for 1 second
guarded
Type: com.espertech.esper.common.client.sodaPatternExpr
is the pattern sub-expression to be guarded

Return Value

Type: PatternGuardExpr
pattern guard expression
See Also