Wcf ChannelFactory是什么<;T>;(“*”是什么意思?
我使用ChannelFactory方式与其他业务层进行通信 请参见此示例:Wcf ChannelFactory是什么<;T>;(“*”是什么意思?,wcf,Wcf,我使用ChannelFactory方式与其他业务层进行通信 请参见此示例: ChannelFactory(“*”)是什么意思,我无法获得有关MSDN的任何信息?通配符指示使用第一个合格端点,因为同一合同可以有多个端点。我在MSDN上找不到对此的任何引用,但可以看到它在ChannelFactory内部使用。InitializeEndpoint(字符串配置名称,端点地址)。使用Dotpeek反编译,我的评论 protected void InitializeEndpoint(string confi
ChannelFactory(“*”)是什么意思,我无法获得有关MSDN的任何信息?通配符指示使用第一个合格端点,因为同一合同可以有多个端点。我在MSDN上找不到对此的任何引用,但可以看到它在
ChannelFactory内部使用。InitializeEndpoint(字符串配置名称,端点地址)
。使用Dotpeek反编译,我的评论
protected void InitializeEndpoint(string configurationName, EndpointAddress address)
{
this.serviceEndpoint = this.CreateDescription();
ServiceEndpoint serviceEndpoint = (ServiceEndpoint) null;
if (configurationName != null)
// ConfigLoader checks whether the passed configurationName is a wildcard match
// and uses it when looking up channels from configuration to determine
// which channel to use
serviceEndpoint = ConfigLoader.LookupEndpoint(configurationName, address, this.serviceEndpoint.Contract);
if (serviceEndpoint != null)
{
this.serviceEndpoint = serviceEndpoint;
}
else
{
if (address != (EndpointAddress) null)
this.Endpoint.Address = address;
this.ApplyConfiguration(configurationName);
}
this.configurationName = configurationName;
this.EnsureSecurityCredentialsManager(this.serviceEndpoint);
}