modules/InstallationSDK.ChefClientInstaller/code/ClientService.cs
/// <summary>
/// Handle Azure status check events to set the role as busy if the lock file is missing.
/// </summary>
/// <param name="sender">Sender object</param>
/// <param name="e">Event arguments</param>
Handle Azure status check events to set the role as busy if the lock file is missing.
Handle Azure status check events to set the role as busy if the lock file is missing .
static void Chef_StatusCheck(object sender, RoleInstanceStatusCheckEventArgs e)
        {
            if (string.IsNullOrWhiteSpace(ClientService.statusCheckFilePath) || 
                System.IO.File.Exists(ClientService.statusCheckFilePath))
            {
                return;
            }
            e.SetBusy();
        }
static void Chef_StatusCheck ( object sender , RoleInstanceStatusCheckEventArgs e ) { if ( string . IsNullOrWhiteSpace ( ClientService . statusCheckFilePath ) || System . IO . File . Exists ( ClientService . statusCheckFilePath ) ) { return ; } e . SetBusy ( ) ; }
Handle Azure status check events to set the role as busy if the lock file is missing.
Handle Azure status check events to set the role as busy if the lock file is missing .
sender
object
None
e
RoleInstanceStatusCheckEventArgs
None