Export (0) Print
Expand All

OneWayBindingElement.BuildChannelFactory<TChannel> Method

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

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>(
	BindingContext context
)

Type Parameters

TChannel

The type of channel that the factory builds.

Parameters

context
Type: System.ServiceModel.Channels.BindingContext

The BindingContext that provides context for the binding element.

Return Value

Type: System.ServiceModel.Channels.IChannelFactory<TChannel>
The IChannelFactory<TChannel> of type IChannel initialized from the context.

ExceptionCondition
ArgumentNullException

context is null.

ArgumentException

The type of TChannel is not IOutputChannel.

InvalidOperationException

The inner binding element does not support IDuplexSessionChannel or IRequestChannel.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft