How to constantly make requests ASP.NET CORE?

You need to ASP.NET CORE every minute to make requests to third party API and save it in the database. As it is reasonable to do? Is it possible to add the realization of this task in the ConfigureServices? Or it won't work?
April 7th 20 at 15:46
2 answers
April 7th 20 at 15:48
Write a Windows Service, let it ride and making the queries.
Even easier - on pitanie script to write
April 7th 20 at 15:50
Yes, you can describe it in your implementation class BackgroundService and add it to the host configuration

while in the service, for example, the loop while(true) {..}, and delay between requests Task.Delay(..)

upd:
here are examples of the services (including the timer): https://docs.microsoft.com/ru-ru/aspnet/core/funda...

Find more questions by tags ASP.NET