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.

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

 

Returns a listener that accepts a channel of a specified type that supports a reliable session.

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 contains the information required to build the listeners that can accept channels of type TChannel.

Return Value

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

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

Type Parameters

TChannel

The IChannel that the listener is built to accept.

Exception Condition
ArgumentException

TChannel is not supported.

The IChannel accepted by the listener is of type TChannel. The types of TChannel supported on the server that hosts the service is dependent of the types of underlying channels used to connect to the client. The following table indicates what reliable session channel types are supported as a function of the underlying channels.

Support for Reliable Session TChannel Types by Underlying Channel Types

IReplyChannel

IReplySessionChannel

IDuplexChannel

IDuplexSessionChannel

IInputSessionChannel

Yes

Yes

Yes

Yes

IReplySessionChannel

Yes

Yes

No

No

IDuplexSessionChannel

No

No

Yes

Yes

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