public async void Execute(IJobExecutionContext context) { try { var quote = await _provider.GetQuote(); if (quote != null) { _repository.Quotes.InsertOne(quote); } } catch (Exception ex) { _logger.Error("The get quotes job failed to process. Error: " + ex.Message); throw ex; } }