Esempio n. 1
0
        public async Task ExecuteAsync()
        {
            var start = DateTime.Now;

            _logger.Log($"Starting {_jobName}  @ {start.ToString("HH:mm:ss.ffff")}");


            _connectDb.EnsureMigrated();


            var duration = DateTime.Now - start;

            _logger.Log($"Finished {_jobName} in {duration.Seconds}.{duration.Milliseconds} seconds");
        }