Share via


ClientRuntime.InteractiveChannelInitializers Özellik

Tanım

Etkileşimli bir kanal başlatıcı koleksiyonunu alır.

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)

Özellik Değeri

türünde IInteractiveChannelInitializereşitlenmiş bir koleksiyon.

Örnekler

Aşağıdaki kod örneği, etkileşimli kanal başlatıcısı eklemek için uç nokta davranışının kullanımını gösterir.

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

Açıklamalar

Etkileşimli kanal başlatıcılarını kullanma hakkında ayrıntılı bilgi için bkz. WCF İstemcisi Kullanarak Hizmetlere Erişme.

Şunlara uygulanır