2011-07-27 5 views
0

Azureでは、更新された障害診断はRoleStatusとgetHealthStatus()に対してどのようなものかを知りたいですか?Azure診断への更新:rolestatusと健康状態の取得

おかげ Supraja J

+0

更新内容は何ですか?あなたは何を探していますか?チェンジログ? –

+0

2010年11月リリースの一部として、Microsoft.ServiceRuntimeが廃止され、Microsoft.WindowsAzure.Diagnosticsを使用してこの機能が提供されて以来、ロールステータス/マネージャーはなくなったようです。しかし、私は古いRoleStatusの機能と同じものを見つけることができませんでした。 – svk

答えて

0

から:http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleinstancestatuscheckeventargs.aspx

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"); 
} 

も参照してください:

RoleInstanceStatusCheckEventArgs.SetBusy():http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleinstancestatuscheckeventargs.setbusy.aspx

RoleEnvironment.RequestRecycle():http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleenvironment.requestrecycle.aspx

関連する問題