Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 public static void Reg(IMsgCall call)
 {
     if (_IMsgCall == null)
     {
         RegIMsgCall(call);
     }
     ParseReceiveMsg().RegMsgCall().Response(true);
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 public static void Reg(IMsgCall call, HttpContextBase context = null)
 {
     if (_IMsgCall == null)
     {
         RegIMsgCall(call);
     }
     ParseReceiveMsg(context).RegMsgCall().Response(true, context);
 }
Esempio n. 3
0
        /// <summary>
        /// 接入微信
        /// </summary>
        /// <returns></returns>
        public static bool Join(IMsgCall call, WeChatParam param = null)
        {
            var sign = ParseJoinToken();

            if (sign.Check(param))
            {
                if (JoinToken.IsGetRequest())
                {
                    sign.Response();
                }
                else
                {
                    ReceiveMsg.Reg(call);
                }
                return(true);
            }
            return(false);
        }
Esempio n. 4
0
 /// <summary>
 /// 注册消息处理接口
 /// </summary>
 public static void RegIMsgCall(IMsgCall call)
 {
     _IMsgCall = call;
 }
Esempio n. 5
0
 /// <summary>
 /// 注册消息处理接口
 /// </summary>
 public static void RegIMsgCall(IMsgCall call)
 {
     _IMsgCall = call;
 }
Esempio n. 6
0
 /// <summary>
 /// 
 /// </summary>
 public static void Reg(IMsgCall call)
 {
     if (_IMsgCall == null)
     {
         RegIMsgCall(call);
     }
     ParseReceiveMsg().RegMsgCall().Response(true);
 }
Esempio n. 7
0
 /// <summary>
 /// 注册消息处理程序。当收到消息是后执行相应的方法。
 /// </summary>
 /// <param name="handler"></param>
 public static void ResisterHandler(IMsgCall handler)
 {
     _messageHandler = handler;
 }
Esempio n. 8
0
 /// <summary>
 /// 接入微信
 /// </summary>
 /// <returns></returns>
 public static bool Join(IMsgCall call, WeChatParam param = null)
 {
     var sign = ParseJoinToken();
     if (sign.Check(param))
     {
         if (JoinToken.IsGetRequest())
             sign.Response();
         else
             ReceiveMsg.Reg(call);
         return true;
     }
     return false;
 }
Esempio n. 9
0
 /// <summary>
 /// 
 /// </summary>
 public static void Reg(IMsgCall call, HttpContextBase context = null)
 {
     if (_IMsgCall == null)
     {
         RegIMsgCall(call);
     }
     ParseReceiveMsg(context).RegMsgCall().Response(true, context);
 }