Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Creating a window service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TonyJ - 12 Oct 2007 10:31 GMT
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
Philipp Brune - 12 Oct 2007 10:57 GMT
TonyJ schrieb:
> Hello!
>
[quoted text clipped - 7 lines]
>
> //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
Joachim Van den Bogaert - 12 Oct 2007 15:43 GMT
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
Joachim Van den Bogaert - 12 Oct 2007 20:48 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.