/// <summary>
        /// 退订
        /// 实际上用户无法收到非订阅账号的消息,所以这里可以随便写。
        /// unsubscribe事件的意义在于及时删除网站应用中已经记录的OpenID绑定,消除冗余数据。并且关注用户流失的情况。
        /// </summary>
        /// <returns></returns>
        public override IResponseMessageBase OnEvent_UnsubscribeRequest(RequestMessageEvent_Unsubscribe requestMessage)
        {
            AppCtx ctx = AppCtx.Current;

            ctx.SetContextHandler(this);
            return(ctx.GetHandler().UnsubscribeRequest(ctx, requestMessage));
        }
Ejemplo n.º 2
0
        public override IResponseMessageBase DefaultResponseMessage(IRequestMessageBase requestMessage)
        {
            AppCtx ctx = AppCtx.Current;

            ctx.SetContextHandler(this);
            return(ctx.GetHandler().RequestAgent(ctx, requestMessage));
        }
        public override IResponseMessageBase OnEvent_ClickRequest(RequestMessageEvent_Click requestMessage)
        {
            AppCtx ctx = AppCtx.Current;

            ctx.SetContextHandler(this);
            return(ctx.GetHandler().ClickEventRequest(ctx, requestMessage.EventKey));
        }
Ejemplo n.º 4
0
        public override IResponseMessageBase OnTextOrEventRequest(RequestMessageText requestMessage)
        {
            AppCtx ctx = AppCtx.Current;

            ctx.SetContextHandler(this);
            return(ctx.GetHandler().TextOrEventRequest(ctx, requestMessage));
        }