private void ProcessReplies(List <DeferredCommentReply> toPost)
 {
     foreach (var reply in toPost)
     {
         reply.Post();
         history.AddToLog(reply.ParentCommentID);
         historian.WriteHistory(history);
         Thread.Sleep(5000);
     }
 }
Example #2
0
        public ReplyHistory ReadHistory()
        {
            ReplyHistory history          = new ReplyHistory();
            string       commentIDsString = ReadStringFromFile();

            if (commentIDsString == null)
            {
                return(history);
            }

            var commentList = commentIDsString.Split(' ').ToList();

            foreach (var comment in commentList)
            {
                history.AddToLog(comment);
            }

            return(history);
        }