Ejemplo n.º 1
0
        // Constructor
        public FightsExtension(Account account)
        {
            _account       = account;
            _spellsManager = new SpellsManager(_account);
            _utility       = new FightsUtility(_account);
            Configuration  = new FightsConfiguration(account);

            SetEvents();
        }
Ejemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                if (disposing)
                {
                    Configuration.Dispose();
                    _spellsManager.Dispose();
                    _utility.Dispose();
                }

                Configuration  = null;
                _spellsManager = null;
                _utility       = null;
                _account       = null;

                _disposedValue = true;
            }
        }