Using WCF to execute code and return objects to another CLR address space

After some reading, I compiled .NET Remoting, an obsolete API that was replaced by WCF.

I am writing an automation infrastructure and want to refer to DLLs using types / methods either locally or on some remote machine, and execute them without respect for where they run.

I thought Remoting is the way to go, since I assume that all the functionality is done on the proxy object, which makes it inconsequential if it is a local object or remote.

How can WCF perform this kind of action (if at all) or is .NET Remoting the way to go?

Or maybe some other option that I did not think about?

+5
source share
3 answers

There is no magic way to call a method that is completely transparent, no matter which machine you run it on, as far as I know, including .NET Remoting. However, WCF makes extensive use of proxies that are automatically generated from WSDL documents or directly referring to types / interfaces from the shared dll library.

, dll, , WCF- (.. /, ), , / , . . , , , , , , , , , "".

:

  • ()
  • TCP ( )
  • HTTP/HTTPS - ( )

, / , WCF , , , , , , . , , , .

WCF .

, - Google Protocol Buffers .

# , , Protobuf CSharp Jon Skeet Protobuf-net .

; , WCF /.

+4

.NET Remoting .

WCF -, .NET... .NET remoting - - MarshalByRef, WCF - , ServiceContract.

.NET. , . WCF, , RealProxy... , .NET Remoting.

http://msdn.microsoft.com/en-us/library/system.runtime.remoting.proxies.realproxy.aspx.

, .NET Remoting, WCF. , , - - -, - (, , IMHO .NET Remoting).

+2

WCF SOA:

ServiceContracts DataContracts,
, .

ServiceContract - , DataContracts, , .

DataContracts - , .
DataMembers.

ServiceContracts OperationContracts, DataContracts.

WCF ServiceContract DataContracts , / .., .


, , , ( ) - , , , - ..

+1

All Articles