Ejemplo n.º 1
0
        /// <summary>
        /// Initialise <see cref="WorldSession"/> from an existing <see cref="Account"/> database model.
        /// </summary>
        public void Initialise(Account account)
        {
            if (Account != null)
            {
                throw new InvalidOperationException();
            }

            Account = account;

            GenericUnlockManager = new GenericUnlockManager(this, account);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialise <see cref="WorldSession"/> from an existing <see cref="AccountModel"/> database model.
        /// </summary>
        public void Initialise(AccountModel account)
        {
            if (Account != null)
            {
                throw new InvalidOperationException();
            }

            Account = account;

            // managers
            AccountRbacManager     = new AccountRBACManager(this, account);
            GenericUnlockManager   = new GenericUnlockManager(this, account);
            AccountCurrencyManager = new AccountCurrencyManager(this, account);
            EntitlementManager     = new EntitlementManager(this, account);
        }