Basically, you need your background task to be executed in an infinite loop. You may use Thread.Sleep() to ensure you don't overconsume resources. For e.g. your background service code can be something like below.
while(! cancellationRequested)
1. Fetch the orders
2. Process them
3. call Task.Delay by setting some time say 1 minute, so that orders will be processed every 1 minute, or you can leave this to small numbers, or even remove this delay to make this more real time.
}
I recommend you to read the following blog post that details about developing a background service using ASP.Net Core.
https://weblogs.asp.net/sreejukg/running-background-tasks-in-asp-net-applications
Hope this helps