示例#1
0
文件: Agent.cs 项目: rajivraj/kraker
 public async Task StopOnError(Exception exception)
 {
     IsStopped = true;
     await Try.Do(() => _jobHandler.Finish(exception),
                  e => _logger.Error("Can't finish the work: {0} {1}",
                                     Environment.NewLine, e));
 }