Exemplo n.º 1
0
 public new void Dispose()
 {
     if (_breedingService == null)
     {
         return;
     }
     _breedingService.Dispose();
     if (_breedingCulturesRepository == null)
     {
         return;
     }
     _breedingCulturesRepository.Dispose();
     // ReSharper disable once UseNullPropagation
     if (_honeyTypeRepository == null)
     {
         return;
     }
     _honeyTypeRepository.Dispose();
 }
Exemplo n.º 2
0
        public override void Dispose()
        {
            if (_youngBreedingRepository == null)
            {
                return;
            }
            _youngBreedingRepository.Dispose();
            _youngBreedingRepository = null;

            if (_breedingComingsRepository == null)
            {
                return;
            }
            _breedingComingsRepository.Dispose();
            _breedingComingsRepository = null;

            if (_beeComingsRepository == null)
            {
                return;
            }
            _beeComingsRepository.Dispose();
            _beeComingsRepository = null;

            if (_fishComingsRepository == null)
            {
                return;
            }
            _fishComingsRepository.Dispose();
            _fishComingsRepository = null;

            if (_breedingChargesRepository == null)
            {
                return;
            }
            _breedingChargesRepository.Dispose();
            _breedingChargesRepository = null;

            if (_breedingDailyProfitRepository == null)
            {
                return;
            }
            _breedingDailyProfitRepository.Dispose();
            _breedingDailyProfitRepository = null;

            if (_beeHoneyRepository == null)
            {
                return;
            }
            _beeHoneyRepository.Dispose();
            _beeHoneyRepository = null;

            if (_breedingProfitRepository == null)
            {
                return;
            }
            _breedingProfitRepository.Dispose();
            _breedingProfitRepository = null;

            if (_fishProfitRepository == null)
            {
                return;
            }
            _fishProfitRepository.Dispose();
            _fishProfitRepository = null;

            if (_breedingRemindingRepository == null)
            {
                return;
            }
            _breedingRemindingRepository.Dispose();
            _breedingRemindingRepository = null;

            if (_breedingTypeRepository == null)
            {
                return;
            }
            _breedingTypeRepository.Dispose();
            _breedingTypeRepository = null;

            if (_breedingCulturesRepository == null)
            {
                return;
            }
            _breedingCulturesRepository.Dispose();
            _breedingCulturesRepository = null;

            if (_honeyTypeRepository == null)
            {
                return;
            }
            _honeyTypeRepository.Dispose();
            _honeyTypeRepository = null;

            if (_usersRepository == null)
            {
                return;
            }
            _usersRepository.Dispose();
            _usersRepository = null;
        }