Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

Initializes a channel factory for producing one-way channels from the binding context.

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^

The BindingContext that provides context for the binding element.

Return Value

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

The IChannelFactory<TChannel> of type IChannel initialized from the context.

Type Parameters

TChannel

The type of channel that the factory builds.

Exception Condition
ArgumentNullException

context is null.

ArgumentException

The type of TChannel is not IOutputChannel.

InvalidOperationException

The inner binding element does not support IDuplexSessionChannel or IRequestChannel.

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft