System.Runtime.Remoting.Messaging 命名空間

System.Runtime.Remoting.Messaging 命名空間包含用來建立和傳輸訊息的類別。 The System.Runtime.Remoting.Messaging namespace contains classes used to create and transmit messages. 遠端基礎結構使用訊息與遠端物件通訊。 The remoting infrastructure uses messages to communicate with remote objects. 訊息被用來傳輸遠端方法呼叫、啟動遠端物件和傳達資訊。 Messages are used to transmit remote method calls, to activate remote objects, and to communicate information. 訊息物件攜帶一組具名屬性,包括動作識別項、Envoy 資訊和參數。 A message object carries a set of named properties, including action identifiers, envoy information, and parameters. System.Runtime.Remoting.Messaging 命名空間的類別中,最重要者包括 AsyncResult 類別、RemotingSurrogateSelector 類別和 ReturnMessage 類別。 Some of the most important classes of the System.Runtime.Remoting.Messaging namespace are the AsyncResult class, the RemotingSurrogateSelector class, and the ReturnMessage class.

類別

AsyncResult

封裝委派上非同步作業的結果。Encapsulates the results of an asynchronous operation on a delegate.

CallContext

提供一組隨附於執行程式碼路徑的屬性。Provides a set of properties that are carried with the execution code path. 這個類別無法被繼承。This class cannot be inherited.

ConstructionCall

實作 IConstructionCallMessage 介面,以建立構成遠端物件上之建構函式 (Constructor) 呼叫的要求訊息。Implements the IConstructionCallMessage interface to create a request message that constitutes a constructor call on a remote object.

ConstructionResponse

實作 IConstructionReturnMessage 介面,以建立訊息來回應執行個體化 (Instantiate) 遠端物件的呼叫。Implements the IConstructionReturnMessage interface to create a message that responds to a call to instantiate a remote object.

Header

定義呼叫的 Out-of-Band Data。Defines the out-of-band data for a call.

InternalMessageWrapper

針對用戶端至伺服器的要求或後續回應,包裝遠端資料以在訊息接收之間傳遞。Wraps remoting data for passing between message sinks, either for requests from client to server or for the subsequent responses.

LogicalCallContext

在遠端方法呼叫期間提供一組附隨於執行程式碼路徑的屬性。Provides a set of properties that are carried with the execution code path during remote method calls.

MethodCall

實作 IMethodCallMessage 介面,以建立做為遠端物件上之方法呼叫的要求訊息。Implements the IMethodCallMessage interface to create a request message that acts as a method call on a remote object.

MethodCallMessageWrapper

實作 IMethodCallMessage 介面,以建立做為遠端物件上之方法呼叫的要求訊息。Implements the IMethodCallMessage interface to create a request message that acts as a method call on a remote object.

MethodResponse

實作 IMethodReturnMessage 介面,以建立做為遠端物件上之方法回應的訊息。Implements the IMethodReturnMessage interface to create a message that acts as a method response on a remote object.

MethodReturnMessageWrapper

實作 IMethodReturnMessage 介面,以建立遠端物件上之方法呼叫的回應訊息。Implements the IMethodReturnMessage interface to create a message that acts as a response to a method call on a remote object.

OneWayAttribute

將方法標記為單向的,沒有傳回值和 outref 參數。Marks a method as one way, without a return value and out or ref parameters.

RemotingSurrogateSelector

選取可以用來序列化衍生自 MarshalByRefObject 的物件的遠端代理。Selects the remoting surrogate that can be used to serialize an object that derives from a MarshalByRefObject.

ReturnMessage

存有回應遠端物件上的方法呼叫而傳回的訊息。Holds a message returned in response to a method call on a remote object.

介面

ILogicalThreadAffinative

標記可以傳播到 AppDomain 中的 LogicalCallContext 之外的物件。Marks an object that can propagate outside of an AppDomain in a LogicalCallContext.

IMessage

包含合作的訊息接收之間傳送的通訊資料。Contains communication data sent between cooperating message sinks.

IMessageCtrl

在它們已經分派之後使用 AsyncProcessMessage(IMessage, IMessageSink) 來提供控制非同步 (Asynchronous) 訊息的方式。Provides a way to control asynchronous messages after they have dispatched using the AsyncProcessMessage(IMessage, IMessageSink).

IMessageSink

定義訊息接收的介面。Defines the interface for a message sink.

IMethodCallMessage

定義方法呼叫訊息介面。Defines the method call message interface.

IMethodMessage

定義方法訊息介面。Defines the method message interface.

IMethodReturnMessage

定義方法呼叫傳回訊息介面。Defines the method call return message interface.

IRemotingFormatter

提供所有格式子 (Formatter) 的遠端程序呼叫 (Remote Procedure Call,RPC) 介面。Provides the remote procedure call (RPC) interface for all formatters.

委派

HeaderHandler

表示在還原序列化 (Deserialization) 期間將會處理資料流上標頭處理的方法。Represents the method that will handle processing of headers on the stream during deserialization.

MessageSurrogateFilter

決定在建立 RemotingSurrogateSelector 類別的 IMessage 時,ObjRef 類別是否應該忽略特定的 MarshalByRefObject 屬性。Determines whether the RemotingSurrogateSelector class should ignore a particular IMessage property while creating an ObjRef for a MarshalByRefObject class.

備註

AsyncResult類別儲存,並傳回非同步方法呼叫的結果。The AsyncResult class stores and returns the results of an asynchronous method call. AsyncResult 執行個體包含return值,呼叫狀態,用於呼叫時,並在非同步方法呼叫的其他資訊的委派。AsyncResult instances contain the return value, call status, the delegate used for the call, and the other information about the asynchronous method call.

RemotingSurrogateSelector類別可以用來控制序列化的物件可以擴充MarshalByRefObjectThe RemotingSurrogateSelector class can be used to control serialization of objects that extend MarshalByRefObject. ARemotingSurrogateSelector選取用於序列化和還原序列化此類物件的 surrogate。A RemotingSurrogateSelector selects the surrogate used in serialization and deserialization of such objects. 代理是物件的物件,可以控制要序列化或還原序列化。A surrogate is an object that can control serialization or deserialization of an object.

ReturnMessage類別存放在遠端方法呼叫後傳回的資訊。The ReturnMessage class holds information returned after a remote method call. AReturnMessage保存return值和任何outref產生自遠端方法呼叫的參數。A ReturnMessage holds the return value and any out or ref parameters that resulted from the remote method call.