Example #1
0
        public async Task Execute()
        {
            _logger.LogInformation("Restore started.");
            var token = await _authentication.GetToken().ConfigureAwait(false);

            await RestoreIt(token).ConfigureAwait(false);
        }
Example #2
0
        public async Task Execute(IJobExecutionContext context)
        {
            _logger.LogInformation("Backup Worker shift started.");
            var token = await _authentication.GetToken().ConfigureAwait(false);

            await CreateBackup(token).ConfigureAwait(false);
        }