You can create background tasks in ASP.Net Core to execute services in the background. Refer to the following article to understand more about this.
https://weblogs.asp.net/sreejukg/running-background-tasks-in-asp-net-applications
Ideally speaking, I recommend you look into Azure functions. "Azure functions" is a serverless solution that will help you to write, deploy and manage your functions easily.
https://video2.skills-academy.com/en-us/azure/azure-functions/functions-overview