Edit

Share via


ContextBindingElement.CanBuildChannelListener<TChannel> Method

Definition

Returns a value that indicates whether the current binding can build a listener for a specified type of channel and context.

public:
generic <typename TChannel>
 where TChannel : class, System::ServiceModel::Channels::IChannel override bool CanBuildChannelListener(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelListener<TChannel> (System.ServiceModel.Channels.BindingContext context) where TChannel : class, System.ServiceModel.Channels.IChannel;
override this.CanBuildChannelListener : System.ServiceModel.Channels.BindingContext -> bool (requires 'Channel : null and 'Channel :> System.ServiceModel.Channels.IChannel)
Public Overrides Function CanBuildChannelListener(Of TChannel As {Class, IChannel}) (context As BindingContext) As Boolean

Type Parameters

TChannel

The type of channel the channel listener accepts. Only IReplyChannel, IReplySessionChannel, and IDuplexSessionChannel are allowed by default.

Parameters

context
BindingContext

The BindingContext for the listener.

Returns

true if the specified channel listener stack can be built on the service; otherwise, false.

Applies to