how to implement a background process?

  • Thread starter Thread starter pokémon
  • Start date Start date
P

pokémon

Ok, I want to implmement a "backgound process", but the catch is this:

I want to control it via a Web Service, that is to say, the Web Service will
be its API.

What type of application should I create? Windows App?

Also, how would the Web Service talk to the background process?
 
pokémon,
I'm assuming by 'background process' you mean something that continuously
runs working on something.

Have you considered a Windows Service, that the Web Service uses .NET
Remoting or MessageQueues to talk to it.

You can use can use System.ServiceProcess.ServiceController to control a
Windows Service if you do not need to communicate a large number of
parameters. If you have lots of data/parameters to communicate then I would
consider using .NET Remoting or a System.Messaging.MessageQueue to send this
info (to the Windows Service).

Hope this helps
Jay
 
Thanks, Jay,

I think Messaging Queuing might not be my choice, since I don't like the
asynch nature of it for this particular app.

Is configuring a web service as a remoting client the same as any other
remoting client, or are there other considerations?
 
pokémon,
Is configuring a web service as a remoting client the same as any other
remoting client, or are there other considerations?
As far as I know its the same.

Hope this helps
Jay
 
Back
Top