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 }); } } }
public override void Clear() { PostsMap.Clear(); PostChain.Clear(); base.Clear(); }