CompositeDuplexBindingElement.CanBuildChannelListener<TChannel> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.