上游/下游调用者
在VS2010的代码分析中,有一个上游/下游调用者的概念。到底什么是上游/下游调用者?
谢谢
In VS2010's code analysis, there is a concept of upstream/downstream callers. What exactly is an up/downstream caller?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您有一个包含几个项目的解决方案 -
Website
、Data
和Services
。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
andServices
.The
Website
project talks to theServices
layer. It validates the request being sent, and then, if successful will get the the relevant information from the database inside theData
project.Given this structure, let's have one simple method in each project:
Website.GetUsers()
-> callsServices.GetUsers()
Services.GetUsers()
-> callsData.GetUsers()
Data.GetUsers()
Now we can say that the upstream caller for
Data.GetUsers()
isServices.GetUsers()
. Similarly, the upstream caller forServices.GetUsers()
isWebsite.GetUsers()
.