What is the .NET standard for remote method invocation?

Scenario:

  • A general assembly defines the types of domain objects (the assembly referenced by both client and server assemblies)
  • A server assembly defines classes and methods that return either primitive types or types defined in a common assembly
  • The client console should call the methods defined by the server, and, of course, get their results in the appropriate types.

What is the standard .NET 3.5 approach to solve this problem? Could you indicate any resource on the Internet to help me?

+7
c #
source share
2 answers

This may be excessive, but it is the most remote method that I am most familiar with and seems to be the current standard of the .NET platform: Windows Communication Framework (WCF).

Here are some links:

MSDN Library Articles in WCF

Initial WCF Editor by CODE Magazine

A brief summary of what is described in the other two

+10
source share

Well, you can use .NET Remoting , but this is not officially recommended, you really should go for WCF .

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

+5
source share

All Articles