예제 #1
0
파일: UserBase.cs 프로젝트: teize001/Crema
 public void Initialize(UserInfo userInfo, BanInfo banInfo)
 {
     if (this.isLoaded == true)
     {
         throw new InvalidOperationException();
     }
     this.userInfo = userInfo;
     this.banInfo  = banInfo;
     this.isLoaded = true;
     this.OnUserInfoChanged(EventArgs.Empty);
     this.OnUserBanInfoChanged(EventArgs.Empty);
 }
예제 #2
0
파일: UserBase.cs 프로젝트: teize001/Crema
 protected void Unban(IAuthentication authentication)
 {
     this.banInfo = BanInfo.Empty;
     this.OnUserBanInfoChanged(EventArgs.Empty);
 }
예제 #3
0
파일: UserBase.cs 프로젝트: teize001/Crema
 protected void Ban(IAuthentication authentication, BanInfo banInfo)
 {
     this.banInfo = banInfo;
     this.OnUserBanInfoChanged(EventArgs.Empty);
 }