What is the .NET standard for remote method invocation?

后端 未结 2 2113
悲&欢浪女
悲&欢浪女 2020-12-19 06:42

Scenario:

  • A common assembly defines domain object types (an assembly that is referenced by both client and server assemblies)
  • A
相关标签:
2条回答
  • 2020-12-19 07:18

    It might be overkill, but it's the remoting method I'm most familiar with, and seems to be the current .NET platform standard: Windows Communication Framework (WCF).

    Here are a few references:

    MSDN library articles on WCF

    WCF Developer's Primer from CODE Magazine

    A quick summary primer of what's covered in the other two

    0 讨论(0)
  • 2020-12-19 07:41

    Well, you may use .NET Remoting, but that is officially deprecated, you should really go for WCF.

    Edit: WCF does not share an assembly, instead it shares an XML contract that both client and server uses to generate parsers for specified types and methods.

    0 讨论(0)
提交回复
热议问题