Ejemplo n.º 1
0
        public override void Handle(Post post)
        {
            BindScope boundScope = new BindScope(Report, post);
            Value     result     = GroupByExpr.Calc(boundScope);

            if (!Value.IsNullOrEmpty(result))
            {
                IList <Post> posts;
                if (PostsMap.TryGetValue(result, out posts))
                {
                    posts.Add(post);
                }
                else
                {
                    PostsMap.Add(result, new List <Post>()
                    {
                        post
                    });
                }
            }
        }
Ejemplo n.º 2
0
 public override void Clear()
 {
     PostsMap.Clear();
     PostChain.Clear();
     base.Clear();
 }