BindingContext.BuildInnerChannelFactory<TChannel> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
針對目前通道處理站下方指定之型別的通道建置內部通道處理站。
public:
generic <typename TChannel>
System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildInnerChannelFactory();
public System.ServiceModel.Channels.IChannelFactory<TChannel> BuildInnerChannelFactory<TChannel> ();
member this.BuildInnerChannelFactory : unit -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Function BuildInnerChannelFactory(Of TChannel) () As IChannelFactory(Of TChannel)
類型參數
- TChannel
內部通道處理站所產生之 IChannel 物件的型別。
傳回
IChannelFactory<TChannel> 型別的 IChannel,表示目前通道處理站的內部通道處理站。
範例
CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.BuildInnerChannelFactory<IDuplexChannel>();
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
context.BuildInnerChannelFactory(Of IDuplexChannel)()