แก้ไข

แชร์ผ่าน


ChannelFactoryBase<TChannel>.OnCreateChannel Method

Definition

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

protected:
 abstract TChannel OnCreateChannel(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
protected abstract TChannel OnCreateChannel (System.ServiceModel.EndpointAddress address, Uri via);
abstract member OnCreateChannel : System.ServiceModel.EndpointAddress * Uri -> 'Channel
Protected MustOverride Function OnCreateChannel (address As EndpointAddress, via As Uri) As TChannel

Parameters

address
EndpointAddress

The EndpointAddress of the remote endpoint to which the channel sends messages.

via
Uri

The Uri that contains the transport address to which messages are sent on the output channel.

Returns

TChannel

A channel of type TChannel with the specified addresses.

Remarks

This method is called by CreateChannel when invoked.

Applies to