Reputation: 138
I have a windows service that has a function, lets say
Sum(int a,int b)
How can I use this function from my windows form application?
Upvotes: 0
Views: 1993
Reputation: 46034
Do not use .NET Remoting. That technology is out-of-date.
If you are wanting to invoke the Sum()
method in the Windows service from the client-side application, Windows Communication Foundation (WCF) would be a logical choice. You can view my answer here for an example of how this might be done.
Upvotes: 3