OneWayBindingElement.BuildChannelFactory<TChannel> Method (BindingContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

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.

Type Parameters

TChannel

The type of channel that the factory builds.

Exception Condition
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
Available since 3.0
Return to top
Show: