Пример #1
0
        /// <summary>
        /// Storage back up
        /// </summary>
        /// <param name="logger"></param>
        public StorageBackupWorker(
            ILogger <StorageBackupWorker> logger,
            IStorageQueueRepository queueRepository,
            ILogTableRepository logRepository,
            IBlobRepository blobRepository)
        {
            _logger = logger;

            _queueRepository = queueRepository;

            _logRepository = logRepository;

            _blobRepository = blobRepository;
        }
        /// <summary>
        /// Storage back up
        /// </summary>
        /// <param name="logger"></param>
        public RestoreBackupWorker(
            ILogger <RestoreBackupWorker> logger,
            ILogTableRepository logRepository,
            IBlobRepository blobRepository,
            IRestoreTableRepository restoreTblRepository)
        {
            _logger = logger;

            _logRepository = logRepository;

            _blobRepository = blobRepository;

            _restoreTblRepository = restoreTblRepository;

            _updateFrequencyCount =
                string.IsNullOrEmpty(Environment.GetEnvironmentVariable("UpdateFrequencyCount")) ?
                Constants.Constants.RESTORE_UPDATE_FREQ_COUNT :
                int.Parse(Environment.GetEnvironmentVariable("UpdateFrequencyCount"));
        }