Exemple #1
0
        //static List<IReplyHandleModule> replyModules;
        protected override ReplyHandleChains CreateReplyChain()
        {
            //if(replyModules==null)
            var replyModules = LoadReplyModules();

            return(ReplyHandleChains.Create(replyModules));
        }
 protected virtual IReplyMessage WeChat_OnReceiveMessage(IIncomeMessage msg)
 {
     if (ReplyHandles == null)
     {
         ReplyHandles = CreateReplyChain();
     }
     return(ReplyHandles.Reply(msg));
 }