ClientRuntime.InteractiveChannelInitializers Propriété

Définition

Obtient une collection d'un initialiseur de canal interactif.

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

Valeur de propriété

Collection synchronisée de type IInteractiveChannelInitializer.

Exemples

L’exemple de code suivant montre l’utilisation d’un comportement de point de terminaison pour insérer un initialiseur de canal interactif.

public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
  clientRuntime.InteractiveChannelInitializers.Add(new InteractiveChannelInitializer());
  clientRuntime.MessageInspectors.Add(new Inspector());
  foreach (ClientOperation op in clientRuntime.Operations)
    op.ParameterInspectors.Add(new Inspector());
}
Public Sub ApplyClientBehavior(ByVal endpoint As ServiceEndpoint, ByVal clientRuntime As ClientRuntime) Implements IEndpointBehavior.ApplyClientBehavior
  clientRuntime.InteractiveChannelInitializers.Add(New InteractiveChannelInitializer())
  clientRuntime.MessageInspectors.Add(New Inspector())
  For Each op As ClientOperation In clientRuntime.Operations
    op.ParameterInspectors.Add(New Inspector())
  Next op
End Sub

Remarques

Pour plus d’informations sur l’utilisation des initialiseurs de canal interactifs, consultez Accès aux services à l’aide d’un client WCF.

S’applique à