ClientRuntime.InteractiveChannelInitializers Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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 ReadOnly Property InteractiveChannelInitializers As SynchronizedCollection(Of IInteractiveChannelInitializer)

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 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

.NET Framework
Available since 3.0
Return to top
Show: