private void _Attach(Account account)
        {
            this._Binder.Bind<IStorageCompetences>(this);

            if (account.HasCompetnce(Account.COMPETENCE.ACCOUNT_FINDER))
            {
                this._Binder.Bind<IAccountFinder>(this._Storage);
                this._Binder.Bind<IGameRecorder>(this._Storage);
            }

            if (account.HasCompetnce(Account.COMPETENCE.ACCOUNT_MANAGER))
            {
                this._Binder.Bind<IAccountManager>(this._Storage);
            }
        }
예제 #2
0
 private void _VerifySuccess(Account account)
 {
     this._VerifySuccessEvent(account.Id);
     this._Account = account;
     this._ToLoadRecord();
 }
예제 #3
0
 private Verify _CreateVerify()
 {
     this._Account = null;
     var verify = new Verify(this._AccountFinder);
     return verify;
 }
 public StroageAccess(ISoulBinder binder, Account account, IStorage storage)
 {
     this._Binder = binder;
     this._Account = account;
     this._Storage = storage;
 }
        Value<ACCOUNT_REQUEST_RESULT> IAccountManager.Update(Account account)
        {
            if (this._Accounts.RemoveAll(a => a.Id == account.Id) > 0)
            {
                this._Accounts.Add(account);
                return ACCOUNT_REQUEST_RESULT.OK;
            }

            return ACCOUNT_REQUEST_RESULT.NOTFOUND;
        }
 Value<ACCOUNT_REQUEST_RESULT> IAccountManager.Create(Account account)
 {
     this._Accounts.Add(account);
     return ACCOUNT_REQUEST_RESULT.OK;
 }