Azure - RoleEnvironment.CurrentRoleInstance.Role.Instances 中的数据是如何生成的?

发布于 2024-11-19 17:10:38 字数 155 浏览 3 评论 0原文

我有一个问题,我的一些代码经常迭代 RoleEnvironment.CurrentRoleInstance.Role.Instances 集合。

这些数据是如何收集的?刷新频繁吗?它总是实时数据吗?

我仍在开发人员模拟环境中工作,因此到目前为止我无法推断出这一点

I have a question, some of my code is often iterating over the
RoleEnvironment.CurrentRoleInstance.Role.Instances collection.

How is this data collected? Is it refreshed frequently? is it always live data?

I am still working in the developer emulated environment so i'm not able to deduce this so far

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

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

发布评论

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

评论(1

三人与歌 2024-11-26 17:10:39

我不确定库如何获取这些数据,但我假设它是从实例上的 C:\Config... 读取(远程桌面进入服务器并疯狂;-))。如果该假设正确,则对于每个 RoleEnvironmentChanging 事件,仅从系统检索一次值,即:在启动时和配置/拓扑更改时。但就像我说的:这些都是假设。

I'm not sure how the library fetched this data but I assume it's reading from C:\Config... on the instances (remote desktop into a server and go wild ;-)). If that assumption is correct, the values will be retrieved from the system only once for every RoleEnvironmentChanging event, that is: at startup and when config/topology changes. But like I said: those are assumptions.

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