WindowsStreamSecurityBindingElement::BuildChannelFactory<TChannel> Method (BindingContext^)

 

Creates a channel factory that can be used to create a channel.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
generic<typename TChannel>
virtual IChannelFactory<TChannel>^ BuildChannelFactory(
	BindingContext^ context
) override

Parameters

context
Type: System.ServiceModel.Channels::BindingContext^

BindingContext members that describe bindings, behaviors, contracts, and other information required to create the channel factory.

Return Value

Type: System.ServiceModel.Channels::IChannelFactory<TChannel>^

Returns a channel factory of the specified type. This method adds this class instance to the BindingParameters and delegates to the build method BuildInnerChannelFactory<TChannel>.

Type Parameters

TChannel

Type of channel factory.

Exception Condition
ArgumentNullException

context cannot be null.

This method creates a channel factory, which is used to create a channel that processes outgoing messages for this binding.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: