Пример #1
0
 protected void OnLoginEvent(LoginArg e)
 {
     if (LoginEvent != null)
     {
         LoginEvent(this, e);
     }
 }
Пример #2
0
 /// <summary>
 /// 登出事件
 /// </summary>
 /// <param name="userRedisModel">用户信息</param>
 public void Login(UserRedisModel userRedisModel)
 {
     if (IsActived)
     {
         var eventArgs = new LoginArg()
         {
             UserName = userRedisModel.UserName,
             UserId   = userRedisModel.UserId,
             FullName = userRedisModel.FullName
         };
         OnLoginEvent(eventArgs);
     }
 }