BinaryMessageEncodingBindingElement.BuildChannelFactory<TChannel> 메서드

정의

지정된 컨텍스트에 대해 지정된 유형의 채널을 만드는 클라이언트에서 채널 팩터리 스택을 빌드합니다.

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel>(System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

형식 매개 변수

TChannel

채널 팩터리에서 생성하는 채널의 유형입니다.

매개 변수

context
BindingContext

채널의 경우입니다 BindingContext .

반품

IChannelFactory<TChannel> 지정된 컨텍스트에 대한 형식 TChannel 의 형식입니다.

예제

var binding = new CustomBinding();
var bpCol = new BindingParameterCollection();
var context = new BindingContext(binding, bpCol);
be.BuildChannelFactory<IDuplexChannel>(context);
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
be.BuildChannelFactory(Of IDuplexChannel)(context)

적용 대상