BindingElement.BuildChannelFactory<TChannel> Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a channel factory for producing channels of a specified type from the binding context.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public virtual IChannelFactory<TChannel> BuildChannelFactory<TChannel>( BindingContext context )
Type Parameters
- TChannel
The type of channel 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 TChannel initialized from the context.
| Exception | Condition |
|---|---|
| ArgumentNullException | context is null. |
Show: