Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Runtime.Remoting Namespace

The System.Runtime.Remoting namespace provides classes and interfaces that allow developers to create and configure distributed applications. Some of the more important classes of the System.Runtime.Remoting namespace are the RemotingConfiguration class, the RemotingServices class, and the ObjRef class.

The RemotingConfiguration class contains static methods for interfacing with configuration settings. The RemotingConfiguration..::.Configure method allows developers to configure the remoting infrastructure through the use of XML formatted configuration files. The RemotingConfiguration class also contains several methods for client-end and server-end registration of client and server activated objects that reside on the server.

The RemotingServices class provides a number of methods to help in using and publishing remoted objects. The RemotingServicesMarshal()()() method provides the functionality for storing all the relevant information required to activate and communicate with a remote object in an instance of the ObjRef class for later serialization and transmission to a remote location. The RemotingServicesUnmarshal()()() method reverses this process, creating a proxy for a remote object that can be used by an application without regard for any remoting subdivisions.

The ObjRef class holds all the relevant information required to activate and communicate with a remote object. This class is a serializable representation of an object that is transmitted to a remote location using a channel, where it is unmarshaled (see Unmarshal()()()) and can be used to create a local proxy of the remoted object.

NoteNote:

Marshal-by-reference objects (MBRs) do not reside in memory forever. Instead, unless the type overrides MarshalByRefObject..::.InitializeLifetimeService to control its own lifetime policies, each MBR has a finite lifetime before the .NET Framework remoting system begins the process of deleting it and reclaiming the memory. For more information, see Lifetime Leases.

  ClassDescription
Public classActivatedClientTypeEntry Holds values for an object type registered on the client end as a type that can be activated on the server.
Public classActivatedServiceTypeEntry Holds values for an object type registered on the service end as one that can be activated on request from a client.
Public classInternalRemotingServices Defines utility methods for use by the .NET Framework remoting infrastructure.
Public classObjectHandle Wraps marshal-by-value object references, allowing them to be returned through an indirection.
Public classObjRef Stores all relevant information required to generate a proxy in order to communicate with a remote object.
Public classRemotingConfiguration Provides various static methods for configuring the remoting infrastructure.
Public classRemotingException The exception that is thrown when something has gone wrong during remoting.
Public classRemotingServices Provides several methods for using and publishing remoted objects and proxies. This class cannot be inherited.
Public classRemotingTimeoutException The exception that is thrown when the server or the client cannot be reached for a previously specified period of time.
Public classServerException The exception that is thrown to communicate errors to the client when the client connects to non-.NET Framework applications that cannot throw exceptions.
Public classSoapServices Provides several methods for using and publishing remoted objects in SOAP format.
Public classTypeEntry Implements a base class that holds the configuration information used to activate an instance of a remote type.
Public classWellKnownClientTypeEntry Holds values for an object type registered on the client as a server-activated type (single call or singleton).
Public classWellKnownServiceTypeEntry Holds values for an object type registered on the service end as a server-activated type object (single call or singleton).
  InterfaceDescription
Public interfaceIChannelInfo Provides custom channel information that is carried along with the ObjRef.
Public interfaceIEnvoyInfo Provides envoy information.
Public interfaceIObjectHandle Defines the interface for unwrapping marshal-by-value objects from indirection.
Public interfaceIRemotingTypeInfo Provides type information for an object.
  EnumerationDescription
Public enumerationCustomErrorsModes Specifies how custom errors are handled.
Public enumerationWellKnownObjectMode Defines how well-known objects are activated.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker