Muokkaa

Jaa


CompositeDuplexBindingElement.CanBuildChannelListener<TChannel> Method

Definition

Returns a value that indicates whether the binding can build the channel listener that accepts a specific type of channel that satisfies the context requirements.

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 IChannel that the listener accepts.

Parameters

context
BindingContext

The BindingContext that provides the context required to build the channel listener.

Returns

true if the channel listener can be built for the build required to accept the specified type of channel; otherwise, false.

Exceptions

context is null.

Remarks

true if TChannel == IInputChannel and the inner binding can also build IInputChannel; otherwise, false.

Applies to