I am creating a little Website which is basically a leaderboard from a specific game.
Im using C#6 - 4.6.
I am using a Webhosting by 1and1.
My question/problem: The leaderboard has to update itself every 10 minutes. I am using an API to get the newest informations and then save it into a mysql db.
I cannot use cronjobs(using Windows hosting) and i cannot create scheduled tasks (Only webhosting and not a server...).
I was talking to support, but they could not help me because of lagg of knowledge in c# and win hosting.
So i tested something in my Visual studio: I created a seperate Thread which does the update, wait for X minutes and then does it again (infinit, until i stop it). Works like a charm on my pc, but when i publish it to the server, the thread starts executing and actually writes that into the log, but after around 10 seconds there is no more respond from the thread.
Everything from that thread is running serverside.
Can someone explain this to me or has a better idea on how to solve it?
If you need any code snippets, please let me know!
Thanks in advance, Markus