ClientRuntime.InteractiveChannelInitializers 속성

정의

대화형 채널 이니셜라이저의 컬렉션을 가져옵니다.Gets a collection of an interactive channel initializer.

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)

속성 값

IInteractiveChannelInitializer 형식의 동기화된 컬렉션입니다.A synchronized collection of type IInteractiveChannelInitializer.

예제

다음 코드 예제에서는 대화형 채널 이니셜라이저를 삽입 하는 엔드포인트 동작을 사용 하는 방법을 보여 줍니다.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());
}
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

설명

대화형 채널 이니셜라이저를 사용 하는 방법에 대 한 자세한 내용은 참조 하세요 WCF 클라이언트를 사용 하 여 액세스 서비스합니다.For details about how to use interactive channel initializers, see Accessing Services Using a WCF Client.

적용 대상