I need to create a scheduled task on my Azure web role. A small who delete entries in a SQL Azure DB. I thought about Quartz.net.
But I didn’t find any way to create a thread on my Azure Web Role. How can I create a thread on my Azure Web Role ?
Thanks !
Depending on your use-case you could setup an startup task (e.g. install quartz.net standalone and the required code you want to periodically run) or start of a task/thread/embedded quartz.net instance from RoleEntryPoint.OnStart. Please also have a look at the many related questions like this one to determine the pros/cons of running in IIS of the WebRole, starting tasks in the WebRole or hosting a separate WorkerRole.