I'm planning an app that will be used to manage invoices and payments for the members of a club. In this early stage I already hit a roadblock: how am I going to generate invoices for each member's monthly paymen开发者_如何学Ct according to a user defined parameter? That is, the administrator will be able to group users and select an invoicing date then each month at that date an invoice will be generated for each user in that group.
I really don't know where to start here, currently I'm searching for a .net version of a cron job ... although from what I've seen, such an alternative is not very doable on shared hosting account.
You may take a look at Quartz.NET which allows you to schedule and execute various tasks.
If your hosting environment doesn't give you access to have scheduled tasks, you could fake it by setting up a web page or web service which when called by the right user starts the process, then create a tiny client app that calls it and schedule that on a client machine somewhere.
Really, the only other option without scheduled tasks is going to be to write code so that whenever something hits the website, it checks to see if it's done it's processing for today (and if not, goes and does it). The problem is really meant to be solved by scheduling.
精彩评论