Redigera

Dela via


CompositeDuplexBindingElement.CanBuildChannelFactory<TChannel> Method

Definition

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

public:
generic <typename TChannel>
 override bool CanBuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override bool CanBuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.CanBuildChannelFactory : System.ServiceModel.Channels.BindingContext -> bool
Public Overrides Function CanBuildChannelFactory(Of TChannel) (context As BindingContext) As Boolean

Type Parameters

TChannel

The IChannel that the channel factory produces.

Parameters

context
BindingContext

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

Returns

true if the binding can build the channel factory; otherwise, false.

Exceptions

context is null.

Remarks

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

Applies to