Creating a window service

T

TonyJ

Hello!

I will create a window service but wonder if a good solution is to start
with a console application or windows application with forms even when I
have no output to produce. I might use output in debug purpose and when this
console or windows forms application works as expected I just copy relevant
pieces to a window service source code.

Is this a good start?

//Tony
 
P

Philipp Brune

TonyJ said:
Hello!

I will create a window service but wonder if a good solution is to start
with a console application or windows application with forms even when I
have no output to produce. I might use output in debug purpose and when this
console or windows forms application works as expected I just copy relevant
pieces to a window service source code.

Is this a good start?

//Tony

Hi Tony,

personally i would not prefer to copy sourcecode around. If i was to
write a windows service then i would put all my logic into a seperate
library and test it excessively (perhaps with a unit-testing framework
like nUnit) while developing. A console or forms application can be
enough for your testing needs as well. After this i would set up the
windows service that simply uses my library.

Philipp
 
J

Joachim Van den Bogaert

I wouldn't know if it is a good start, but it helps me for sure. For
the moment I am writing a WCF service that needs to be consumed by a
web site and a windows application (actually I'm investigating WPF to
make this easier). I've learnt that it is useful to log information to
a console screen whenever a service is called. You can add verbose
error handling to show you what is going on. Also, you will probably
want to log some stuff. Writing it to the console is a first step
then, I think,

Joachim
 
J

Joachim Van den Bogaert

I wouldn't know if it is a good start, but it helps me for sure. For
the moment I am writing a WCF service that needs to be consumed by a
web site and a windows application (actually I'm investigating WPF to
make this easier). I've learnt that it is useful to log information to
a console screen whenever a service is called. You can add verbose
error handling to show you what is going on. Also, you will probably
want to log some stuff. Writing it to the console is a first step
then, I think,

Joachim
 

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