ChannelFactoryBase<TChannel>.OnCreateChannel(EndpointAddress, Uri) 方法
定义
在派生类中实现时,在创建通道时提供一个可扩展点。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
参数
- address
- EndpointAddress
EndpointAddress,它是通道发送消息的目标远程终结点。The EndpointAddress of the remote endpoint to which the channel sends messages.
- via
- Uri
Uri,包含输出通道发送消息的目标传输地址。The Uri that contains the transport address to which messages are sent on the output channel.
返回
- TChannel
一个 TChannel 类型的通道,它具有指定的地址。A channel of type TChannel with the specified addresses.
注解
受到调用时,此方法由 CreateChannel 调用。This method is called by CreateChannel when invoked.