예제 #1
0
파일: Patterns.cs 프로젝트: lanicon/nesper
 /// <summary>
 /// Pattern every-operator and filter in combination, equivalent to the "every tag=MyEvent(vol &gt; 100)" syntax.
 /// </summary>
 /// <param name="filter">
 /// specifies the event type name and filter expression to filter for
 /// </param>
 /// <param name="tagName">is the tag name to assign to matching events</param>
 /// <returns>pattern expression</returns>
 public static PatternEveryExpr EveryFilter(
     Filter filter,
     string tagName)
 {
     PatternExpr inner = new PatternFilterExpr(filter, tagName);
     return new PatternEveryExpr(inner);
 }
예제 #2
0
파일: Patterns.cs 프로젝트: lanicon/nesper
 /// <summary>
 /// Pattern every-operator and filter in combination, equivalent to the "every
 /// tag=MyEvent" syntax.
 /// </summary>
 /// <param name="eventTypeName">is the event type name to filter for</param>
 /// <param name="tagName">is the tag name to assign to matching events</param>
 /// <returns>
 /// pattern expression
 /// </returns>
 public static PatternEveryExpr EveryFilter(
     string eventTypeName,
     string tagName)
 {
     PatternExpr filter = new PatternFilterExpr(soda.Filter.Create(eventTypeName), tagName);
     return new PatternEveryExpr(filter);
 }
예제 #3
0
파일: Patterns.cs 프로젝트: lanicon/nesper
 /// <summary>
 /// Pattern every-operator and filter in combination, equivalent to the "every MyEvent(vol &gt; 100)" syntax.
 /// </summary>
 /// <param name="filter">
 /// specifies the event type name and filter expression to filter for
 /// </param>
 /// <returns>pattern expression</returns>
 public static PatternEveryExpr EveryFilter(Filter filter)
 {
     PatternExpr inner = new PatternFilterExpr(filter);
     return new PatternEveryExpr(inner);
 }