从代理读取时的性能问题

问题描述

尝试搜索内容,但找不到任何具体内容

public abstract class ProxyAdapter : FinancialClient,IProxyAdapter
{
    public ProxyAdapter(string endpointConfigurationName) :base(endpointConfigurationName) 
    {

    }

    public string ServiceURL { get { return base.Endpoint.Address.Uri.AbsoluteUri; } }
    ....
}

这是我添加到 WCF 应用程序 (.net 4.7.2) 的基于 SOAP 的服务的代理片段。包含 FinancialClient 类的 Reference.cs 文件非常大(大约 16 万行)。

当我尝试读取 ServiceUrl 时,整个调用大约需要 2 秒钟;注释此行可将通话时间缩短约 2 秒。

为什么以这种方式读取网址如此昂贵?有替代品吗?

谢谢, 阿伦

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)