skip to Main Content

I have just started learning asp.net and C#. I need to create a function that runs once a week, every Monday and returns a new entry in my SQL database.

Does anyone have any suggestions for how I should approach this? And are you aware of any ways to have this kind of functionality without a data log table that checks if the function has already been run for that week?

2

Answers


  1. Try Hangfire – it can schedule a job and repeat it.

    Login or Signup to reply.
  2. There are some solutions to do this.
    Check this out:
    [https://www.hanselman.com/blog/how-to-run-background-tasks-in-aspnet][1]

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search