Learn System.Time.Remoting Namespace

xiaoxiao2021-03-06  39

Learn System.Time.Remoting Namespace

Lzmtw

1/11/2005

http://blog.9cbs.net/lzmtw

purpose:

Abstract Learn the content of this namespace, master key details, solve some technical problems in the current program.

Alien references should be read this article:

I have the basic conceptual concept, and I will not express my idea according to the conventional concept. The following is only my own understanding. There are a lot of errors, read carefully, cut.

Associated content:

System.MarshalByrefObject class

System.Runtime.Remoting.Lifetime.lifetimeServices class

Ø System.Runtime.Remoting Namespace

First, function

Provide classes and interfaces that create and configure distributed applications.

Second, the content provided in this name space

class

Description

ActiVatedClientTypeEntry

The value of the object type registered on the client is saved as a type that can be activated on the server.

ActivatedServiceTyPeentry

The value of the object type registered on the server is saved as a type of activation requesting the client.

Objecthandle

Packaging The value is enabled to be referenced, allowing them to return through indirect addressing.

Objref

Store all related information required to generate a proxy to communicate with the remote object.

RemotingConfiguration

Provide a variety of static methods for configuring remote processing structures.

RemotInGexception

An exception that occurs when an error occurs during remote processing.

RemotingServices

Provide a variety of methods for use and publish remote objects and agents. Unable to inherit this class.

RemotingTimeOUTEXCEPTION

An exception that cannot be reached by the server or client during a certain period of time.

ServeRexception

When the client connection cannot cause an unusual .NET Framework application, an exception is thrown to the client.

SOAPSERVICES

Provides several ways to use and publish remote objects in SOAP format.

TYPEENTRY

Implement the base class for saving configuration information to activate the remote type instance.

WellknownClientTyPeentry

The value of the object type registered in the client is saved as a server activation type (single call or singleton).

WellknownServiceTyPeentry

The value of the object type registered on the server is saved as a server activation type object (single call or singleton).

interface

Description

Ichannelinfo

Provides custom channel information that is transmitted with ObjRef.

IenvoyInfo

Provide representative information.

IObjectHandle

Define an interface for enabling access to the object from indirect addressing.

IremotingTypeInfo

Provide type information for objects.

enumerate

Description

WellknownObjectMode

Define how to activate known objects.

Ø System.MarshalByrefObject class

First, function

Allows access to objects across application domains in applications that support remote processing.

The MarshalByrefObject object can be accessed directly within the boundaries of the local application domain. When the application in the remote application domain accesses MarshalByrefObject, the proxy is passed to the remote application. The call to the agent will be sealed back to the object in the local application domain.

Second, key details

Main method

Description

CreateObjref

Create an object that contains all the relevant information required to generate a proxy that communicates with the remote object.

GetlifetimeService

Retrieve the current survival service object of the survival policy of this instance.

InitializelifetimeService

Gets the lifetime service object that controls the living period of this instance.

Ø System.Runtime.Remoting.lifetime.lifetimeServices class 1, function

Control the .NET remote processing Living service.

Second, key details

Main attribute

Description

LeaseManagerPolltime

Gets or sets the time interval between each activation of the lease manager to clear the expired lease.

Leasetime

Gets or sets the initial lease time range of AppDomain.

RenewonCallTime Gets or settings SPonsorshipTimeout

Get or set the lease manager to wait for the organizer to return to the rendending time.

转载请注明原文地址:https://www.9cbs.com/read-70514.html

New Post(0)