示例#1
0
 public void HandleEvent(SendVerifyCodeEvent @event)
 {
     _redisHelper.StringSet(string.Format(KEY_VCODE_FMT, @event.VerifyCode.Mobile),
                            @event.VerifyCode.Code,
                            TimeSpan.FromMinutes(15));
 }
示例#2
0
 public void HandleEvent(UserLoginEvent @event)
 {
     _redisHelper.StringSet(string.Format(ONLINE_USER_SIGN_KEY_FMT, @event.Signature),
                            string.Format("{0}{1}", @event.UserId, @event.Token), TimeSpan.FromDays(31));
 }
示例#3
0
 public void HandleEvent(DeviceRegEvent @event)
 {
     _redisHelper.StringSet(string.Format(KEY_DEV_FMT, @event.Signature), DateTime.Now.ToString("yyyyMMddHHmmss"),
                            TimeSpan.FromDays(31));
 }