Click here to Skip to main content
15,887,836 members
Home / Discussions / C#
   

C#

 
GeneralRe: using a switch for a range of numbers Pin
leppie12-Feb-04 8:56
leppie12-Feb-04 8:56 
GeneralRe: using a switch for a range of numbers Pin
LobsterDK14-Feb-04 8:46
LobsterDK14-Feb-04 8:46 
GeneralData Access Suggestions Pin
Jason Pyke12-Feb-04 4:52
Jason Pyke12-Feb-04 4:52 
GeneralRe: Data Access Suggestions Pin
Mazdak12-Feb-04 6:03
Mazdak12-Feb-04 6:03 
GeneralRe: Data Access Suggestions Pin
Jason Pyke12-Feb-04 6:16
Jason Pyke12-Feb-04 6:16 
GeneralRe: Data Access Suggestions Pin
Heath Stewart12-Feb-04 6:29
protectorHeath Stewart12-Feb-04 6:29 
GeneralRe: Data Access Suggestions Pin
Jason Pyke12-Feb-04 8:09
Jason Pyke12-Feb-04 8:09 
GeneralRe: Data Access Suggestions Pin
Heath Stewart12-Feb-04 8:47
protectorHeath Stewart12-Feb-04 8:47 
I would suggest picking up the books .NET Remoting[^] (MSPress) and/or Advanced .NET Remoting[^] (Ingo Rammer). These take you through the basics and to intermediate and advanced topics (Ingo's book).

.NET Remoting in a basic concept is like XML Web Services. Remoting can use SOAP like Web Services do, but the overall architecture is very extensible. For instance, you can use either SOAP or binary formatters provided in the base class libraries, or use your own formatter to which object graphs are serialized. An HttpChannel and a TcpChannel are also provided (HTTP has some overhead, but integrates well when hosted with IIS), or you can create your own transmission chain.

And speaking of chains, .NET Remoting use an aspect-oriented approach - allowing you to chain handlers together to act on the serialized data before transmitting it across the wire. Web Services are not without their extensibility features, but this is acheived by adding custom elements to the SOAP messages, though the WSE from Microsoft (using industry standards like WS-Encryption, WS-Signatures, WS-Routing, and more) provides some additional capabilities. To do all this is much more difficult, though, as opposed to .NET Remoting that allows you to chain sinks together programmatically or as simple as using a .config file (making it easy to change the features of the sink chain without having to recode and recompile, like adding logging capabilities for each message or different types of messages).

Finally, .NET Remoting works with .NET's serialization features to marshal instances of objects across application domains (.NET Remoting is also the prefered way for IPC between AppDomains in .NET, typically using a TcpChannel). Web Services can only send copies of an object.

So, for instance, lets say you had a Person object in your application. If you call a remote method on the Person object using .NET Remoting, if that method modifies the object, the modification will be reflected in the local Person object. With Web Services, you could only get a copy of that object back.

XML Web Services work good for many things, especially B2B, B2P, and P2P communication when dealing with data (like Microsoft Research task pane in their Office 2003 system). .NET Remoting is nice when you want to build distributed applications that work with and modify objects.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Data Access Suggestions Pin
Mazdak12-Feb-04 9:42
Mazdak12-Feb-04 9:42 
GeneralRe: Data Access Suggestions Pin
Heath Stewart12-Feb-04 10:58
protectorHeath Stewart12-Feb-04 10:58 
GeneralRe: Data Access Suggestions Pin
Mazdak12-Feb-04 20:08
Mazdak12-Feb-04 20:08 
GeneralOutlook Automation - MSG format Pin
Braulio Dez12-Feb-04 4:36
Braulio Dez12-Feb-04 4:36 
GeneralRe: Outlook Automation - MSG format Pin
Heath Stewart12-Feb-04 6:10
protectorHeath Stewart12-Feb-04 6:10 
QuestionWhat is SMTP server? Pin
shdelpiero12-Feb-04 4:30
shdelpiero12-Feb-04 4:30 
AnswerRe: What is SMTP server? Pin
Heath Stewart12-Feb-04 5:02
protectorHeath Stewart12-Feb-04 5:02 
AnswerRe: What is SMTP server? Pin
Kentamanos12-Feb-04 8:57
Kentamanos12-Feb-04 8:57 
GeneralSelecting a specificTabPage... Pin
profoundwhispers12-Feb-04 4:30
profoundwhispers12-Feb-04 4:30 
GeneralRe: Selecting a specificTabPage... Pin
Heath Stewart12-Feb-04 4:52
protectorHeath Stewart12-Feb-04 4:52 
GeneralNull Pointer COM error - StrRetToStr Pin
Tristan Rhodes12-Feb-04 4:16
Tristan Rhodes12-Feb-04 4:16 
GeneralRe: Null Pointer COM error - StrRetToStr Pin
Nick Parker12-Feb-04 6:19
protectorNick Parker12-Feb-04 6:19 
GeneralHTML EMail with embedded images Pin
Braulio Dez12-Feb-04 4:14
Braulio Dez12-Feb-04 4:14 
GeneralRe: HTML EMail with embedded images Pin
Heath Stewart12-Feb-04 4:48
protectorHeath Stewart12-Feb-04 4:48 
GeneralRe: HTML EMail with embedded images Pin
Mazdak12-Feb-04 5:56
Mazdak12-Feb-04 5:56 
GeneralRe: HTML EMail with embedded images Pin
Nick Parker12-Feb-04 6:23
protectorNick Parker12-Feb-04 6:23 
GeneralRe: HTML EMail with embedded images Pin
Heath Stewart12-Feb-04 8:17
protectorHeath Stewart12-Feb-04 8:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.