简体   繁体   中英

how to execute server application method in C#

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# ?

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.

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM