Service application and its configuration screen

S

SeeSharp Bint

I have written a Windows Service application that does some scheduled small
tasks on one or more sql server databases.
I've written it so that it can service several databases. I've also written
a small application with a single main configuration window that allows
add/delete of databases, login details etc to a stored file
At the moment both of these are separate applications but I'd really like to
combine the two together as they're so closely related.

Am I able to do this please? If so then how? (ie I need to run it as a
service but somehow get to the configuration screen easily)

thanks :)
 
N

Nicholas Paldino [.NET/C# MVP]

You ^could^ have them as one application, but it is NOT advised. The
reason for this is that a service runs all the time, and you don't always
have an interactive user logged in with a desktop to interact with. Or, you
might have multiple interactive users logged into the service.

If you have functionality that is shared between the programs, then I
suggest that you move that functionality into a separate dll, and register
it in the GAC. Then, have the service and the configuration window as
separate programs, using Windows Communications Foundation to make calls
from the configuration program to the service.

Hope this helps.
 

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