Пример #1
0
        public override void Dispose()
        {
            if (_growingFieldComingsRepository == null)
            {
                return;
            }
            _growingFieldComingsRepository.Dispose();
            _growingFieldComingsRepository = null;

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

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

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

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

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

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

            if (_usersRepository == null)
            {
                return;
            }
            _usersRepository.Dispose();
            _usersRepository = null;
        }
Пример #2
0
 public UsersService(IGrowingFieldProfitsRepository growingFieldProfitsRepository,
     IGrowingFruitProfitsRepository growingFruitProfitsRepository,
     IBreedingRemindingRepository breedingRemindingRepository,
     IRemindingRepository remindingRepository, IUsersRepository usersRepository)
 {
     _growingFieldProfitsRepository = growingFieldProfitsRepository;
     _growingFruitProfitsRepository = growingFruitProfitsRepository;
     _breedingRemindingRepository = breedingRemindingRepository;
     _remindingRepository = remindingRepository;
     _usersRepository = usersRepository;
 }
Пример #3
0
 public GrowingService(IGrowingFieldComingsRepository growingFieldComingsRepository, IGrowingChargesRepository growingChargesRepository,
                       IUsersRepository userRepository, IGrowingFieldProfitsRepository growingFieldProfitsRepository, IGrowingTypeRepository growingTypeRepository,
                       IGrowingCulturesRepository growingCulturesRepository)
 {
     _growingFieldComingsRepository = growingFieldComingsRepository;
     _growingChargesRepository      = growingChargesRepository;
     _growingFieldProfitsRepository = growingFieldProfitsRepository;
     _growingTypeRepository         = growingTypeRepository;
     _growingCulturesRepository     = growingCulturesRepository;
     _usersRepository = userRepository;
 }
Пример #4
0
 public UsersService(IGrowingFieldProfitsRepository growingFieldProfitsRepository,
                     IGrowingFruitProfitsRepository growingFruitProfitsRepository,
                     IBreedingRemindingRepository breedingRemindingRepository,
                     IRemindingRepository remindingRepository, IUsersRepository usersRepository)
 {
     _growingFieldProfitsRepository = growingFieldProfitsRepository;
     _growingFruitProfitsRepository = growingFruitProfitsRepository;
     _breedingRemindingRepository   = breedingRemindingRepository;
     _remindingRepository           = remindingRepository;
     _usersRepository = usersRepository;
 }
 public GrowingService(IGrowingFieldComingsRepository growingFieldComingsRepository, IGrowingChargesRepository growingChargesRepository,
    IUsersRepository userRepository, IGrowingFieldProfitsRepository growingFieldProfitsRepository, IGrowingTypeRepository growingTypeRepository,
    IGrowingCulturesRepository growingCulturesRepository)
 {
     _growingFieldComingsRepository = growingFieldComingsRepository;
     _growingChargesRepository = growingChargesRepository;
     _growingFieldProfitsRepository = growingFieldProfitsRepository;
     _growingTypeRepository = growingTypeRepository;
     _growingCulturesRepository = growingCulturesRepository;
     _usersRepository = userRepository;
 }
Пример #6
0
        public override void Dispose()
        {
            if (_usersRepository == null)
            {
                return;
            }
            _usersRepository.Dispose();
            _usersRepository = null;

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

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

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

            if (_breedingRemindingRepository == null)
            {
                return;
            }
            _breedingRemindingRepository.Dispose();
            _breedingRemindingRepository = null;
        }
Пример #7
0
        public override void Dispose()
        {
            if (_usersRepository == null) return;
            _usersRepository.Dispose();
            _usersRepository = null;

            if (_remindingRepository == null) return;
            _remindingRepository.Dispose();
            _remindingRepository = null;

            if (_growingFieldProfitsRepository == null) return;
            _growingFieldProfitsRepository.Dispose();
            _growingFieldProfitsRepository = null;

            if (_growingFruitProfitsRepository == null) return;
            _growingFruitProfitsRepository.Dispose();
            _growingFruitProfitsRepository = null;

            if (_breedingRemindingRepository == null) return;
            _breedingRemindingRepository.Dispose();
            _breedingRemindingRepository = null;
        }
        public override void Dispose()
        {
            if (_growingFieldComingsRepository == null) return;
            _growingFieldComingsRepository.Dispose();
            _growingFieldComingsRepository = null;

            if (_growingFruitComingsRepository == null) return;
            _growingFruitComingsRepository.Dispose();
            _growingFruitComingsRepository = null;

            if (_growingFieldProfitsRepository == null) return;
            _growingFieldProfitsRepository.Dispose();
            _growingFieldProfitsRepository = null;

            if (_growingFruitProfitsRepository == null) return;
            _growingFruitProfitsRepository.Dispose();
            _growingFruitProfitsRepository = null;

            if (_growingTypeRepository == null) return;
            _growingTypeRepository.Dispose();
            _growingTypeRepository = null;

            if (_growingCulturesRepository == null) return;
            _growingCulturesRepository.Dispose();
            _growingCulturesRepository = null;

            if (_growingChargesRepository == null) return;
            _growingChargesRepository.Dispose();
            _growingChargesRepository = null;

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