Simulate a Windows Service Using ASP.NET to Run Scheduled Jobs(beckelman.net)

submitted by beckelmwbeckelmw(2755) 3 years, 8 months ago

Back in 2005 Omar Al Zabir (Co-founder and CTO of PageFlakes) posted an article on the CodeProject web site Simulate a Windows Service using ASP.NET to run scheduled jobs that many of you have probably seen. If you liked the idea at the time but didn't do anything with it, you may want to take another look now. In the comments, dselkirk provided an alternative that really cleans things up that Erichero then improved upon slightly and converted to C#.

3 comments |category: |Views: 622

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dotnetchrisdotnetchris(157) 3 years, 8 months ago 0

I am honestly amazed I never would have considered something like this even remotely possible, I just have to wonder what the implications are of real usage of this pattern would be or if ASP.NET would truly handle it correctly and there would be no negative drawbacks to it.

Reply

posted by ajdotnetajdotnet(2940) 3 years, 8 months ago 0

I can understand that somebody shys away from windows service development, but especially "to run scheduled jobs or cron jobs" this work has already been done by Microsoft: That service is called Scheduler!

As for using IIS for the job: a gross abuse in my opinion.

Reply

posted by beckelmwbeckelmw(2755) 3 years, 8 months ago 0

If your using shared hosting you don't have the option to use windows services though. The article isn't a solution for someone working with their own box.

Reply

information Login or create an account to comment on this story