Пример #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_userManager != null)
                {
                    _userManager.Dispose();
                    _userManager = null;
                }

                if (_signInManager != null)
                {
                    _signInManager.Dispose();
                    _signInManager = null;
                }

                if (_roleManager != null)
                {
                    _roleManager.Dispose();
                    _roleManager = null;
                }
            }

            base.Dispose(disposing);
        }
Пример #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_userManager != null)
                {
                    _userManager.Dispose();
                    _userManager = null;
                }

                if (_signInManager != null)
                {
                    _signInManager.Dispose();
                    _signInManager = null;
                }

                if (_roleManager != null)
                {
                    _roleManager.Dispose();
                    _roleManager = null;
                }

                //catRepo.Dispose();
                //productRepo.Dispose();
                //orderRepo.Dispose();
                //cartRepo.Dispose();
            }

            base.Dispose(disposing);
        }
Пример #3
0
 public void Dispose()
 {
     userManager.Dispose();
     roleManager.Dispose();
     clientManager.Dispose();
     db.Dispose();
 }
Пример #4
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_payrollBureauBusinessService != null)
                {
                    _payrollBureauBusinessService = null;
                }

                if (_userManager != null)
                {
                    _userManager.Dispose();
                    _userManager = null;
                }

                if (_signInManager != null)
                {
                    _signInManager.Dispose();
                    _signInManager = null;
                }

                if (_roleManager != null)
                {
                    _roleManager.Dispose();
                    _roleManager = null;
                }

                if (_applicationUser != null)
                {
                    _applicationUser = null;
                }
            }

            base.Dispose(disposing);
        }
Пример #5
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && _roleManager != null)
     {
         _roleManager.Dispose();
         _roleManager = null;
     }
     base.Dispose(disposing);
 }
        protected virtual void Dispose(bool disposing)
        {
            if (!disposed && disposing)
            {
                userManager.Dispose();
                roleManager.Dispose();
                clientManager.Dispose();
            }

            this.disposed = true;
        }
Пример #7
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _roleManager?.Dispose();
                _userManager?.Dispose();
                _signInManager?.Dispose();
            }

            base.Dispose(disposing);
        }
Пример #8
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             _applicationUserManager.Dispose();
             _applicationRoleManager.Dispose();
         }
         this.disposed = true;
     }
 }
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             userManager.Dispose();
             roleManager.Dispose();
         }
         this.disposed = true;
     }
 }
Пример #10
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             userManager.Dispose();
             roleManager.Dispose();
             //ApplicationUserRepository.Dispose();
         }
         this.disposed = true;
     }
 }
Пример #11
0
 public void Dispose(bool displosing)
 {
     if (!this.disposed)
     {
         if (displosing)
         {
             userManager.Dispose();
             roleManager.Dispose();
             clientManager.Dispose();
         }
         this.disposed = true;
     }
 }
Пример #12
0
 public virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             db.Dispose();
             userManager.Dispose();
             roleManager.Dispose();
         }
         disposed = true;
     }
 }
Пример #13
0
 public virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _userManager.Dispose();
             _roleManager.Dispose();
             _clientManager.Dispose();
         }
         _disposed = true;
     }
 }
Пример #14
0
 public virtual void Dispose(bool disposing)
 {
     if (!this._disposed)
     {
         if (disposing)
         {
             _db.Dispose();
             _roleManager.Dispose();
             _userManager.Dispose();
         }
     }
     this._disposed = true;
 }
Пример #15
0
 public virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             context.Dispose();
             roleManager.Dispose();
             userManager.Dispose();
         }
     }
     _disposed = true;
 }
Пример #16
0
 protected virtual void IsDisposable(bool isDisp)
 {
     if (!stateDisposed)
     {
         if (isDisp)
         {
             DataContext.Dispose();
             RoleManager.Dispose();
             UserManager.Dispose();
         }
         this.stateDisposed = true;
     }
 }
Пример #17
0
        public virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    _context?.Dispose();
                    _userManager?.Dispose();
                    _roleManager?.Dispose();
                }

                this.disposed = true;
            }
        }
Пример #18
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
         }
         db.Dispose();
         userManager.Dispose();
         roleManager.Dispose();
         clientManager.Dispose();
         this.disposed = true;
     }
 }
Пример #19
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // TODO: dispose managed state (managed objects).
                    _userManager.Dispose();
                    _roleManager.Dispose();
                    _profileRepository.Dispose();
                }
                disposedValue = true;
            }
        }
        public virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _userManager.Dispose();
                _roleManager.Dispose();
            }
            _disposed = true;
        }
Пример #21
0
        private bool disposedValue = false; // Для определения избыточных вызовов

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    _userManager.Dispose();
                    _roleManager.Dispose();
                    _profileManager.Dispose();
                }

                disposedValue = true;
            }
        }
Пример #22
0
 private void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             //release managed resources
             _identityDbContext.Dispose();
             ApplicationRoleManager.Dispose();
             UserSecurityManager.Dispose();
         }
         //relesae unmanaged resources
         this.disposed = true;
     }
 }
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             userManager.Dispose();
             roleManager.Dispose();
             clientManager.Dispose();
             Films.Dispose();
             FilmPeople.Dispose();
         }
         disposed = true;
     }
 }
Пример #24
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             userManager.Dispose();
             roleManager.Dispose();
             projectRepository.Dispose();
             projectTaskRepository.Dispose();
             userProfileRepository.Dispose();
         }
         this.disposed = true;
     }
 }
 public virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             userManager.Dispose();
             roleManager.Dispose();
             clientManager.Dispose();
             dialogManager.Dispose();
             friendshipManager.Dispose();
         }
         disposed = true;
     }
 }
Пример #26
0
 public virtual void Dispose(bool disposing)
 {
     if (disposed)
     {
         return;
     }
     if (disposing)
     {
         //TODO перепроверить
         db.Dispose();
         userManager.Dispose();
         roleManager.Dispose();
         clientManager.Dispose();
     }
     disposed = true;
 }
Пример #27
0
 public virtual void Dispose(bool disposing)
 {
     if (!this._disposed)
     {
         if (disposing)
         {
             _userManager.Dispose();
             _roleManager.Dispose();
             _workerManager.Dispose();
             _workTimeManager.Dispose();
             _imageManager.Dispose();
             _reservationManager.Dispose();
             _confirmReservation.Dispose();
         }
         this._disposed = true;
     }
 }
Пример #28
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             userManager.Dispose();
             roleManager.Dispose();
             clientManager.Dispose();
             recipeManager.Dispose();
             productManager.Dispose();
             recipeProductManager.Dispose();
             recipeClientProfileManager.Dispose();
             rankManager.Dispose();
         }
         this.disposed = true;
     }
 }
Пример #29
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _userManager?.Dispose();
                _userManager = null;

                _signInManager?.Dispose();
                _signInManager = null;

                _roleManager?.Dispose();
                _roleManager = null;

                //_unitOfWork?.Dispose();
            }

            base.Dispose(disposing);
        }
Пример #30
0
        private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                if (disposing)
                {
                    _userManager.Dispose();
                    _roleManager.Dispose();
                    _clientManager.Dispose();

                    _customerRepository.Dispose();
                    _orderRepository.Dispose();
                    _roomFotoRepository.Dispose();
                    _roomRepository.Dispose();
                }
            }
            _disposed = true;
        }