示例#1
0
        /// <summary>
        /// 处理消息请求
        /// </summary>
        public override void ProcessRequest()
        {
            base.ProcessRequest();
            PassiveProcess    pp          = new PassiveProcess(this._wxPlatFormTypeEnum);
            MessageDispatcher md          = new MessageDispatcher();
            string            strResponse = md.Dispatcher(pp.GetDecryptContent());
            //加密
            string strEncryptionResponse = string.Empty;

            pp.SetEncryptionContent(strResponse, ref strEncryptionResponse);
            //发送
            pp.MsgResponse(strEncryptionResponse);
        }
示例#2
0
 public PassiveProperty(PassiveProcess <TDomain, TDataStore> process)
 {
     _process  = process;
     DataStore = process.InitialValue;
 }
示例#3
0
 public static PassiveProperty <TDomain, TDataStore> WrapInProperty <TDomain, TDataStore>(
     this PassiveProcess <TDomain, TDataStore> passive)
 {
     return(new PassiveProperty <TDomain, TDataStore>(passive));
 }