2

我正在开发 azure webrole,在我的一个应用程序(控制台应用程序)中,我想知道我的 webrole 在哪个环境中运行?

即登台/生产环境。

是否有任何 dll 可用于获得这个想法?我正在寻找 azure 提供的 dll 可用的解决方案,而不是 REST API?

我想不用 CERTIFICATE 的用户

4

2 回答 2

1

回来看看这个问题

没有其他方法(我知道)来获取环境类型。

于 2011-11-24T08:16:33.533 回答
0

Another good approach is given here

...you can check your application url, if its what your service name is then its production, othrwise if its some random guid then staging.

于 2011-11-26T13:11:08.113 回答