Friday, February 12, 2010

Programmer - Implement Daemon on ASP.NET / C# / IIS Site?

I'd like to implement a POP3-mailbox processing component for our medium-sized consumer website. Our site uses IPSwitch as the mail/smtp/pop host.



This processing component would let us offer "reply to this message board discussion via email" type services. It would need to run constantly; or at the very least, every 3-5 minutes or something.



I'm pretty sure I know what I need to do to implement this POP3 reader in C#, but I'm just not sure of the mechanism that makes it happen every 3-5 minutes, keeps it running when the machine reboots, etc. Task Scheduler seems a little brittle. Should this be written instead as a Windows Service? And if so, can I get some good pointers on how to write an Installable Service in C#? Or, if there's a better plan to run a daemon on an IIS box, I'd much appreciate it.

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails