C# 远程方法调用 (RMI)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1830243/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C# Remote Method Invocation (RMI)
提问by Kobojunkie
I need to write an RMI server and client in C# and was sort of confused about what this really is considering most of the posts I have read online on the subject have been Java-related. What exactly is C#'s version of Java RMI? Thanks in advance!
我需要用 C# 编写一个 RMI 服务器和客户端,并且对这到底是什么感到有些困惑,因为我在网上阅读的关于该主题的大部分帖子都与 Java 相关。究竟什么是 C# 版本的 Java RMI?提前致谢!
采纳答案by SLaks
You're looking for .Net Remoting. You may also want to look into WCF.
您正在寻找.Net Remoting。您可能还想查看WCF。
回答by JMarsch
If you are using .net 3.0 or better, look into WCF (Windows Communication Foundation). If you are using .net 2.0 or older, look at .Net Remoting.
如果您使用 .net 3.0 或更高版本,请查看 WCF(Windows Communication Foundation)。如果您使用 .net 2.0 或更早版本,请查看 .Net Remoting。
回答by 62316e
You can use anything except WCF if you want fast and lightweight application without writing tons of xml or hours to configure calculator.
如果您想要快速和轻量级的应用程序,而无需编写大量 xml 或数小时来配置计算器,您可以使用除 WCF 之外的任何东西。