Azure应用程序中的Web角色计数 [英] Web role count in azure application

查看:65
本文介绍了Azure应用程序中的Web角色计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Azure应用程序中获取Web角色和辅助角色的数量.
我可以使用RoleEnvironment.Roles.count获取角色总数.
但是我只需要计算应用程序中存在的Web角色即可.如何找到呢?

How to get the number of Web roles and worker roles in azure application.
I can get the total number of roles count using RoleEnvironment.Roles.count.
But i need only the count of web roles present in the application.How to find that?

推荐答案

每个托管服务最多可以具有25个角色.请参阅:
Each hosted service may have up to 25 roles. Refer: MSDN Blog: Number of Roles Allowed In Windows Azure Deployments[^]


这篇关于Azure应用程序中的Web角色计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆