Condividi tramite


DispatchRuntime.MessageInspectors Proprietà

Definizione

Ottiene una raccolta di IDispatchMessageInspector oggetti che possono essere utilizzati per allegare un controllo messaggi personalizzato per tutti i messaggi in ingresso e in uscita nell'endpoint.

public:
 property System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IDispatchMessageInspector ^> ^ MessageInspectors { System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IDispatchMessageInspector ^> ^ get(); };
public System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IDispatchMessageInspector> MessageInspectors { get; }
member this.MessageInspectors : System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IDispatchMessageInspector>
Public ReadOnly Property MessageInspectors As SynchronizedCollection(Of IDispatchMessageInspector)

Valore della proprietà

Oggetto SynchronizedCollection<T> di tipo IDispatchMessageInspector.

Commenti

Utilizzare la MessageInspectors proprietà per associare oggetti personalizzati IDispatchMessageInspector che possono esaminare o trasformare tutti i messaggi che passano attraverso l'endpoint. Poiché l'oggetto IDispatchMessageInspector ottiene un riferimento al messaggio, è possibile memorizzarlo nel buffer ed esaminare una copia del corpo.

Si applica a