System.Runtime.Remoting.Messaging Ad Alanı
İleti oluşturmak ve göndermek için kullanılan sınıfları içerir. Contains classes used to create and transmit messages. Uzaktan iletişim altyapısı, uzak nesnelerle iletişim kurmak için iletileri kullanır. The remoting infrastructure uses messages to communicate with remote objects. İletiler uzak yöntem çağrılarını aktarmak, uzak nesneleri etkinleştirmek ve bilgileri iletmek için kullanılır. Messages are used to transmit remote method calls, to activate remote objects, and to communicate information. İleti nesnesi, eylem tanımlayıcıları, haberci bilgileri ve parametreleri de dahil olmak üzere bir adlandırılmış özellikler kümesi taşır. A message object carries a set of named properties, including action identifiers, envoy information, and parameters. Ad alanının en önemli sınıflarının bazıları System.Runtime.Remoting.MessagingAsyncResult Class, RemotingSurrogateSelector Class ve ReturnMessage Class. Some of the most important classes of the System.Runtime.Remoting.Messaging namespace are the AsyncResult class, the RemotingSurrogateSelector class, and the ReturnMessage class.
Sınıflar
AsyncResult |
Bir temsilci üzerinde zaman uyumsuz bir işlemin sonuçlarını kapsüller.Encapsulates the results of an asynchronous operation on a delegate. |
CallContext |
Yürütme kodu yoluyla taşınan bir özellikler kümesi sağlar.Provides a set of properties that are carried with the execution code path. Bu sınıf devralınamaz.This class cannot be inherited. |
ConstructionCall |
IConstructionCallMessageUzak bir nesne üzerinde bir Oluşturucu çağrısını oluşturan bir istek iletisi oluşturmak için arabirimini uygular.Implements the IConstructionCallMessage interface to create a request message that constitutes a constructor call on a remote object. |
ConstructionResponse |
IConstructionReturnMessageUzak nesne örneğini oluşturma çağrısına yanıt veren bir ileti oluşturmak için arabirimini uygular.Implements the IConstructionReturnMessage interface to create a message that responds to a call to instantiate a remote object. |
Header |
Bir çağrı için bant dışı verileri tanımlar.Defines the out-of-band data for a call. |
InternalMessageWrapper |
İstemciden sunucuya veya sonraki yanıtlara yönelik istekler için ileti havuzları arasında geçiş yapmak üzere uzaktan iletişim verilerini sarar.Wraps remoting data for passing between message sinks, either for requests from client to server or for the subsequent responses. |
LogicalCallContext |
Uzak yöntem çağrıları sırasında yürütme kodu yoluyla taşınan özellikler kümesi sağlar.Provides a set of properties that are carried with the execution code path during remote method calls. |
MethodCall |
Uzak bir IMethodCallMessage nesne üzerinde yöntem çağrısı görevi gören bir istek iletisi oluşturmak için arabirimini uygular.Implements the IMethodCallMessage interface to create a request message that acts as a method call on a remote object. |
MethodCallMessageWrapper |
Uzak bir IMethodCallMessage nesne üzerinde yöntem çağrısı görevi gören bir istek iletisi oluşturmak için arabirimini uygular.Implements the IMethodCallMessage interface to create a request message that acts as a method call on a remote object. |
MethodResponse |
Uzak bir IMethodReturnMessage nesne üzerinde yöntem yanıtı görevi gören bir ileti oluşturmak için arabirimini uygular.Implements the IMethodReturnMessage interface to create a message that acts as a method response on a remote object. |
MethodReturnMessageWrapper |
Uzak bir IMethodReturnMessage nesne üzerindeki yöntem çağrısına yanıt olarak davranan bir ileti oluşturmak için arabirimini uygular.Implements the IMethodReturnMessage interface to create a message that acts as a response to a method call on a remote object. |
OneWayAttribute |
Bir yöntemi, dönüş değeri ve veya parametreleri olmadan tek yönlü olarak |
RemotingSurrogateSelector |
Bir ' dan türetilen bir nesneyi seri hale getirmek için kullanılabilecek uzaktan iletişim yedeği seçer MarshalByRefObject .Selects the remoting surrogate that can be used to serialize an object that derives from a MarshalByRefObject. |
ReturnMessage |
Uzak nesnedeki bir yöntem çağrısına yanıt olarak döndürülen bir iletiyi tutar.Holds a message returned in response to a method call on a remote object. |
Arabirimler
ILogicalThreadAffinative |
İçinde bir ' ın dışına yayabilir bir nesne işaretler AppDomain LogicalCallContext .Marks an object that can propagate outside of an AppDomain in a LogicalCallContext. |
IMessage |
Kurduğuna ileti havuzları arasında gönderilen iletişim verilerini içerir.Contains communication data sent between cooperating message sinks. |
IMessageCtrl |
, Kullanarak gönderildikten sonra zaman uyumsuz iletileri denetlemek için bir yol sağlar AsyncProcessMessage(IMessage, IMessageSink) .Provides a way to control asynchronous messages after they have dispatched using the AsyncProcessMessage(IMessage, IMessageSink). |
IMessageSink |
İleti havuzu için arabirimi tanımlar.Defines the interface for a message sink. |
IMethodCallMessage |
Çağrı iletisi arabirimini tanımlar.Defines the method call message interface. |
IMethodMessage |
Yöntem ileti arabirimini tanımlar.Defines the method message interface. |
IMethodReturnMessage |
Çağrı iletisi dönüş iletisi arabirimini tanımlar.Defines the method call return message interface. |
IRemotingFormatter |
Tüm Biçimlendiriciler için uzak yordam çağrısı (RPC) arabirimini sağlar.Provides the remote procedure call (RPC) interface for all formatters. |
Temsilciler
HeaderHandler |
Seri durumdan çıkarma sırasında akıştaki üst bilgilerin işlenmesini işleyecek yöntemi temsil eder.Represents the method that will handle processing of headers on the stream during deserialization. |
MessageSurrogateFilter |
Sınıfın bir RemotingSurrogateSelector IMessage sınıf için oluştururken belirli bir özelliği yoksaymasının gerekip gerekmediğini belirler ObjRef MarshalByRefObject .Determines whether the RemotingSurrogateSelector class should ignore a particular IMessage property while creating an ObjRef for a MarshalByRefObject class. |
Açıklamalar
AsyncResultSınıfı, zaman uyumsuz yöntem çağrısının sonuçlarını depolar ve döndürür.The AsyncResult class stores and returns the results of an asynchronous method call. AsyncResult örnekler; return
değeri, çağrı durumunu, çağrı için kullanılan temsilciyi ve zaman uyumsuz yöntem çağrısıyla ilgili diğer bilgileri içerir.AsyncResult instances contain the return
value, call status, the delegate used for the call, and the other information about the asynchronous method call.
RemotingSurrogateSelectorSınıfı, genişleyen nesnelerin serileştirmesini denetlemek için kullanılabilir MarshalByRefObject .The RemotingSurrogateSelector class can be used to control serialization of objects that extend MarshalByRefObject. Bir RemotingSurrogateSelector Bu tür nesnenin serileştirilmesi ve serisini kaldırma bölümünde kullanılan yedeği seçer.A RemotingSurrogateSelector selects the surrogate used in serialization and deserialization of such objects. Yedek, bir nesnenin serileştirme veya serisini kaldırma işlemi için denetim sağlayan bir nesnedir.A surrogate is an object that can control serialization or deserialization of an object.
ReturnMessageSınıfı, uzak yöntem çağrısından sonra döndürülen bilgileri tutar.The ReturnMessage class holds information returned after a remote method call. ReturnMessage, return
out
Uzak yöntem çağrısından kaynaklanan değeri ve ref
parametreleri tutar.A ReturnMessage holds the return
value and any out
or ref
parameters that resulted from the remote method call.