Mohammad Rashid
Mohammad Rashid

Reputation: 138

Use Windows Service from a Windows form application

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

Answers (1)

Matt Davis
Matt Davis

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

Related Questions