OnCreateChannel Method

ChannelFactoryBase<TChannel>.OnCreateChannel Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

When implemented in a derived class, provides an extensibility point when creating channels.

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

protected abstract TChannel OnCreateChannel(
	EndpointAddress address,
	Uri via
)

Parameters

address
Type: System.ServiceModel.EndpointAddress
The EndpointAddress of the remote endpoint to which the channel sends messages.
via
Type: System.Uri
The Uri that contains the transport address to which messages are sent on the output channel.

Return Value

Type: TChannel
A channel of type TChannel with the specified addresses.

This method is called by CreateChannel(EndpointAddress) when invoked.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft