Wrapping a C# service in a console app to debug it.

Posted by Jack Smit on Stack Overflow See other posts from Stack Overflow or by Jack Smit
Published on 2010-03-25T16:49:49Z Indexed on 2010/03/25 17:03 UTC
Read the original article Hit count: 454

Filed under:
|
|

I want to debug a service written in C# and the old fashioned way is just too long. I have to stop the service, start my application that uses the service in debug mode (Visual studio 2008), start the service, attach to the service process and then navigate in my Asp.Net application to trigger the service.

I basically have the service running in the background, waiting for a task. The web application will trigger a task to be picked up by the service.

What I would like to do is to have a console application that fires the service in an effort for me to debug. Is there any simple demo that anybody knows about?

Thank you Jack

© Stack Overflow or respective owner

Related posts about c#

Related posts about service