語言

PeerCustomResolverBindingElement.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 其中包含指定類型的新通道工廠。

備註

此方法可用於根據傳輸綁定元件的配置,建立通道工廠以傳送訊息。

適用於