ClientRuntime.InteractiveChannelInitializers Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a collection of an interactive channel initializer.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public SynchronizedCollection<IInteractiveChannelInitializer> InteractiveChannelInitializers { get; }

For details about how to use interactive channel initializers, see Accessing Services Using a Client.

The following code example shows the use of an endpoint behavior to insert an interactive channel initializer.

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());

.NET Framework
Available since 3.0
Return to top