示例#1
0
        /// <summary>
        /// Ported from void post_splitter::flush()
        /// </summary>
        public override void Flush()
        {
            foreach (KeyValuePair <Value, IList <Post> > pair in PostsMap)
            {
                PreFlushFunc(pair.Key);

                foreach (Post post in pair.Value)
                {
                    PostChain.Handle(post);
                }

                PostChain.Flush();
                PostChain.Clear();

                if (PostFlushFunc != null)
                {
                    PostFlushFunc(pair.Key);
                }
            }
        }
示例#2
0
 public override void Clear()
 {
     PostsMap.Clear();
     PostChain.Clear();
     base.Clear();
 }