上游/下游调用者

发布于 2024-09-24 13:54:01 字数 61 浏览 0 评论 0原文

在VS2010的代码分析中,有一个上游/下游调用者的概念。到底什么是上游/下游调用者?

谢谢

In VS2010's code analysis, there is a concept of upstream/downstream callers. What exactly is an up/downstream caller?

Thanks

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

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

发布评论

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

评论(1

天暗了我发光 2024-10-01 13:54:01

假设您有一个包含几个项目的解决方案 - WebsiteDataServices

Website 项目与Services 层通信。它验证发送的请求,如果成功,将从 Data 项目内的数据库中获取相关信息。

给定这种结构,让我们在每个项目中使用一个简单的方法:

  • Website.GetUsers() ->调用 Services.GetUsers()
  • Services.GetUsers() ->调用 Data.GetUsers()
  • Data.GetUsers()

现在我们可以说 Data.GetUsers()< 的上游调用者 /code> 是 Services.GetUsers()。同样,Services.GetUsers() 的上游调用方是 Website.GetUsers()

Let's say that you have a solution with a couple of projects - Website, Data and Services.

The Website project talks to the Services layer. It validates the request being sent, and then, if successful will get the the relevant information from the database inside the Data project.

Given this structure, let's have one simple method in each project:

  • Website.GetUsers() -> calls Services.GetUsers()
  • Services.GetUsers() -> calls Data.GetUsers()
  • Data.GetUsers()

Now we can say that the upstream caller for Data.GetUsers() is Services.GetUsers(). Similarly, the upstream caller for Services.GetUsers() is Website.GetUsers().

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