更新Azure诊断:rolestatus并获取运行状况
所以我想知道Azure中RoleStatus和getHealthStatus()的最新诊断是什么 谢谢 上文J来自: 另见: RoleInstanceStatusCheckEventArgs.SetBusy(): 及更新Azure诊断:rolestatus并获取运行状况,azure,Azure,所以我想知道Azure中RoleStatus和getHealthStatus()的最新诊断是什么 谢谢 上文J来自: 另见: RoleInstanceStatusCheckEventArgs.SetBusy(): 及 RoleEnvironment.RequestRecycle():与什么相比更新了?你到底在找什么?变更日志?显然,作为2010年11月版本的一部分,由于Microsoft.ServiceRuntime已被弃用,角色状态/管理器已消失,现在使用Microsoft.WindowsAz
RoleEnvironment.RequestRecycle():与什么相比更新了?你到底在找什么?变更日志?显然,作为2010年11月版本的一部分,由于Microsoft.ServiceRuntime已被弃用,角色状态/管理器已消失,现在使用Microsoft.WindowsAzure.Diagnostics提供此功能。但我无法找出哪一个功能与旧的RoleStatus相同。
public override bool OnStart()
{
RoleEnvironment.StatusCheck += RoleEnvironmentStatusCheck;
return base.OnStart();
}
private void RoleEnvironmentStatusCheck(object sender, RoleInstanceStatusCheckEventArgs e)
{
Trace.WriteLine("The status of the role instance: " + e.Status, "Information");
}