ChannelFactoryBase<TChannel>.OnCreateChannel 方法

定义

在派生类中实现时,在创建通道时提供一个可扩展点。

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,它是通道发送消息的目标远程终结点。

via
Uri

Uri,包含输出通道发送消息的目标传输地址。

返回

TChannel

一个 TChannel 类型的通道,它具有指定的地址。

注解

受到调用时,此方法由 CreateChannel 调用。

适用于