Azure服务定义:运行时执行上下文实际上做了什么?

时间:2016-08-22 22:43:18

标签: azure azure-cloud-services

executionContext(https://msdn.microsoft.com/en-us/library/azure/gg557553.aspx#Runtime)上的Azure文档说,executionContext控制运行时环境是否“提升”(默认为非提升,“有限”)。但是,我注意到,即使将executionContext默认为限制,WaIISHost和w3wp进程也会以提升的方式运行。

enter image description here

文档没有解释这一点。是否有更详细的解释将exectutionContext设置为“提升”的影响?

使用executionContext =“true”是否意味着我的整个Web应用程序都运行了?

2 个答案:

答案 0 :(得分:0)

  
    

使用executionContext =“ true”是否意味着我的整个Web应用程序运行都已提升?

  

"true"是无效值。

您可以将其设置为"limited""elevated"。如果将其设置为elevated,则在工作角色中它将以waworkerhost.exe而不是SYSTEM的身份运行NETWORK SERVICE

我不确定它对网络角色有什么作用。我已经读过它depends on what version of the Azure SDK you're using,并且在某些版本中只会提升Web角色的RoleEntryPoint,而不会提升IIS中运行的实际网站。

答案 1 :(得分:-1)

来自官方网站:$data = 'Niño' $escaped = pg_escape_string(utf8_encode($data)); $query = "INSERT INTO correspondence (name, data) VALUES ('nino', '{$escaped}')"

https://azure.microsoft.com/en-us/documentation/articles/cloud-services-startup-tasks/

相关问题