Redigera

Dela via


OneWayBindingElement.BuildChannelFactory<TChannel> Method

Definition

Initializes a channel factory for producing one-way channels from the binding context.

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 type of channel that the factory builds.

Parameters

context
BindingContext

The BindingContext that provides context for the binding element.

Returns

The IChannelFactory<TChannel> of type IChannel initialized from the context.

Exceptions

context is null.

The type of TChannel is not IOutputChannel.

The inner binding element does not support IDuplexSessionChannel or IRequestChannel.

Remarks

This method creates a channel factory, which is used to create a channel that processes outgoing messages for this binding.

Applies to