Azure - RoleEnvironment.CurrentRoleInstance.Role.Instances 中的数据是如何生成的?
我有一个问题,我的一些代码经常迭代 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定库如何获取这些数据,但我假设它是从实例上的 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.