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.

TransactionFlowBindingElement::BuildChannelListener<TChannel> Method (BindingContext^)

 

Initializes a channel listener for accepting channels of a specified type from the binding context.

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

public:
generic<typename TChannel>
where TChannel : ref class, IChannel
virtual IChannelListener<TChannel>^ BuildChannelListener(
	BindingContext^ context
) override

Parameters

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

The BindingContext that should be used to build the channel listener.

Return Value

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

The IChannelListener<TChannel> of type TChannel initialized from context.

Type Parameters

TChannel

The channel type.

Exception Condition
ArgumentNullException

context is null.

ArgumentException

A channel listener for the specified channel type cannot be built.

This method creates a channel listener to receive messages for this binding.

This method is called by the infrastructure when building the channel. You should use it in your code only when you implement a custom binding element.

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