Working on two C-Sharp projects.
Hi all,
I have two C# project. One is a C# .Net service and the other one is a Dialog based C# project. From the dialog based project, using a button click I want start the service and do all required processing. Its simple, I used a serviceController component and do it.
Now I want to make a slight change. On the button click event I want to send some parameters to the service and use it in the service. How can I do that.
In simple work how can I access from one project to the other
Thanks.
Re: Working on two C-Sharp projects.
I assume your windows service has the usual Main(args[])? You can send the string based parameters in the ServiceController.Start() method.
Look here http://msdn2.microsoft.com/en-us/library/9c38b683.aspx
Re: Working on two C-Sharp projects.
TCP sockets would let you do 2-way communication.
Re: Working on two C-Sharp projects.
Quote:
Originally Posted by wossname
TCP sockets would let you do 2-way communication.
That seems like overkill...