SecurityBindingElement.BuildChannelFactoryCore<TChannel> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When implemented, creates a channel factory of a specified type.
protected:
generic <typename TChannel>
abstract System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactoryCore(System::ServiceModel::Channels::BindingContext ^ context);
protected abstract System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactoryCore<TChannel> (System.ServiceModel.Channels.BindingContext context);
abstract member BuildChannelFactoryCore : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Protected MustOverride Function BuildChannelFactoryCore(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)
Type Parameters
- TChannel
The type of channel factory.
Parameters
- context
- BindingContext
The BindingContext.
Returns
A channel factory of a specified type.
Exceptions
context
is null
.
A channel of type TChannel
is not supported.
Remarks
BuildChannelFactory, which does error checking, calls this method. When this method is implemented in a derived class, it creates a channel factory, which is used to create a channel that processes outgoing messages for this binding.