Configure a console application to a Windows Service

T

tdavisjr

Can anyone give me any hints on how to do this. I already have a
console app that I have to start manually but I want to configure it
to run as a windows service.
 
G

Guest

be Its relatively simple.
Create a new Windows Service application, change the code in your console
app to a class library, and in the services OnStart method, create an
instance of your class on a separate background thread and call its
"whateveritDoes" method.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top