任何方式都可以“查找参考资料” 适用于网络方法?

发布于 2024-07-08 00:17:59 字数 300 浏览 3 评论 0原文

我正在寻找一种方法来查找可能使用 Web 方法的其他代码中的引用。 右键单击并选择“查找引用”无法通过 wsdl 接口访问我的解决方案中引用这些 Web 方法的其他类。 这是清理工作的一部分 - 我正在尝试删除过时/旧的/未使用的方法。

我可以按姓名搜索,但这与按签名搜索不同。

我意识到,通常情况下,其他应用程序可以远程调用 webmethods/webservices,但此 webservice/这些 webmethods 并非如此。 我的应用程序是唯一调用它们的应用程序。 我并不是要求找到我的解决方案之外存在的参考资料。

I'm looking for a way to find references to a web method in other code that may use it. Right-click and choose find references doesn't make it through the wsdl interface to other classes in my solution that reference those web methods. This is part of a clean-up effort - I'm trying to remove outdated/old/unused methods.

I can search by name but its not the same as searching by signature.

I realize that normally, webmethods/webservices could be called by other applications remotely but that's not the case with this webservice/these webmethods. My app is the only app calling them. I'm not asking to find references existing outside my solution.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

執念 2024-07-15 00:17:59

不,无法从 Web 服务实现中执行此操作,但您可以转到生成的代理(您可能必须从解决方案资源管理器中“显示所有文件”才能查看 .cs 文件)并查找引用从那里。

No, there is no way to do this from the web service implementation, but you can go to the generated proxy (you may have to "show all files" from within the solution explorer to see the .cs file) and do a find references from there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文