Επεξεργασία

Κοινή χρήση μέσω


CompositeDuplexBindingElement.BuildChannelFactory<TChannel> Method

Definition

Returns a channel factory that can create a composite duplex channel.

public:
generic <typename TChannel>
 override System::ServiceModel::Channels::IChannelFactory<TChannel> ^ BuildChannelFactory(System::ServiceModel::Channels::BindingContext ^ context);
public override System.ServiceModel.Channels.IChannelFactory<TChannel> BuildChannelFactory<TChannel> (System.ServiceModel.Channels.BindingContext context);
override this.BuildChannelFactory : System.ServiceModel.Channels.BindingContext -> System.ServiceModel.Channels.IChannelFactory<'Channel>
Public Overrides Function BuildChannelFactory(Of TChannel) (context As BindingContext) As IChannelFactory(Of TChannel)

Type Parameters

TChannel

The IChannel that the factory produces.

Parameters

context
BindingContext

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

Returns

A IChannelFactory<TChannel> that creates a composite duplex channel of type TChannel.

Exceptions

context is null.

The TChannel is not of type IOutputChannel and is not supported.

Remarks

The build context requires an IOutputChannel for the TChannel.

Applies to