Esempio n. 1
0
 /// <summary>
 /// Create a pattern context.
 /// </summary>
 /// <param name="statementContext">is the statement information and services</param>
 /// <param name="streamId">is the stream id</param>
 /// <param name="rootNode">is the pattern root node</param>
 /// <param name="matchedEventMapMeta"></param>
 /// <param name="allowResilient"></param>
 /// <returns>pattern context</returns>
 public PatternContext CreateContext(StatementContext statementContext,
                                     int streamId,
                                     EvalRootFactoryNode rootNode,
                                     MatchedEventMapMeta matchedEventMapMeta,
                                     bool allowResilient)
 {
     return(new PatternContext(statementContext, streamId, matchedEventMapMeta, false));
 }
Esempio n. 2
0
        private static IList <EvalFactoryNode> CollectFactories(EvalRootFactoryNode rootFactory)
        {
            var factories = new List <EvalFactoryNode>(8);

            foreach (EvalFactoryNode factoryNode in rootFactory.ChildNodes)
            {
                CollectFactoriesRecursive(factoryNode, factories);
            }
            return(factories);
        }
Esempio n. 3
0
 public EvalRootNode(PatternAgentInstanceContext context, EvalRootFactoryNode factoryNode, EvalNode childNode)
     : base(context)
 {
     _factoryNode = factoryNode;
     _childNode   = childNode;
 }
Esempio n. 4
0
 public static EvalRootNode MakeRootNodeFromFactory(EvalRootFactoryNode rootFactoryNode, PatternAgentInstanceContext patternAgentInstanceContext)
 {
     return((EvalRootNode)rootFactoryNode.MakeEvalNode(patternAgentInstanceContext, null));
 }