예제 #1
0
파일: JaredApp.cs 프로젝트: bradleach/Jared
        private async Task <JobResult> ConfigureAndExecuteJob(IJob job)
        {
            try
            {
                Log.Logger = job.ConfigureLogger();

                return(await job.Execute());
            }
            catch (Exception ex)
            {
                Log.Fatal(ex, "Error running job");
                return(JobResult.Failure);
            }
        }