I have a client application and server application. I wont to execute server application method using client application. such as RMI in java. How can i do that in c# ?
Asked
Active
Viewed 546 times
0
-
2Why not expose the method through [WCF](http://en.wikipedia.org/wiki/Windows_Communication_Foundation)? Also see [this discussion](http://stackoverflow.com/questions/10833550/send-code-to-be-executed-on-server-in-c-sharp-like-java-rmi). – galenus Oct 21 '13 at 06:47
-
yes.thank your comment.i did that with WCF. – EBS Oct 21 '13 at 09:46
2 Answers
0
You can call Remote methods and events in C#.Here you can find better tutorial to do that.
But better to use WCF to expose service layer to do that.
From MSDN
.NET Remoting based applications to the Windows Communication Foundation to take advantage of the new infrastructure for the creation of service oriented applications.

Thilina H
- 5,754
- 6
- 26
- 56
0
If you are looking for an easy to use WCF-like framework that can be used with .NET Framework, .NET Core and .NET 5.0 you are welcome to check out Zerto.WebApi.Rpc. You define the services using C# interfaces, and behind the scenes it will use HTTP and JSON (using ASP.NET Core).

Tal Aloni
- 1,429
- 14
- 14