|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Window Service and Http RequestHi All
I'm assigned a task to create some kind of services to monitor new sales in database and send out emails and I'm thinking to use window service to do that. Does anyone know where I can find some good samples of window service that do similar things? Can a window service send an http request? Any help would be greatly appreciated Regards, Sam Looks slightly confusing to me. Do you want to send emails or http requests,
or both? The scenario you describe first (monitor a database and send emails) is a perfect task for a service. As for the http requests it depends on what you want to do with the result. Do you intend to parse it and take some action based on it? If so, then that too will work fine in a service. But you can't throw up the result in a web browser or similar though, since there is no user there to see it (well technically you could, but don't go there). In any case your service needs to run under a user account that has access to the mail server and/or the internet. I don't have any samples for you unfortunately, but writing a service isn't that hard as long as you are aware of its limitations (which basically are that you can't interact with the screen and if you require access to network resources you need to run it under a user account that has access to those) /claes Show quoteHide quote "Sam" <ask***@yahoo.com> wrote in message news:OhdEZRujGHA.4284@TK2MSFTNGP05.phx.gbl... > Hi All > > I'm assigned a task to create some kind of services to monitor new sales > in database and send out emails and I'm thinking to use window service to > do that. Does anyone know where I can find some good samples of window > service that do similar things? Can a window service send an http request? > Any help would be greatly appreciated > > Regards, > > Sam >
RANT: option strict etc
Handling DBNull from databases Final Post of the day c# to vb.net getting screen coordinates for positioning a floating control next to a tableLayOutPanel embeded con Tokenizing Emulating keyboard strokes in vb.net Refer to sheet2 - even when named To catch when a process is terminated cast from string to button |
|||||||||||||||||||||||