52 references to BuildRequestEngineStatus
Microsoft.Build (27)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (23)
51private BuildRequestEngineStatus _status; 132_status = BuildRequestEngineStatus.Uninitialized; 180public BuildRequestEngineStatus Status => _status; 191ErrorUtilities.VerifyThrow(_status == BuildRequestEngineStatus.Uninitialized, "Engine must be in the Uninitiailzed state, but is {0}", _status); 199ChangeStatus(BuildRequestEngineStatus.Idle); 216ErrorUtilities.VerifyThrow(_status == BuildRequestEngineStatus.Active || _status == BuildRequestEngineStatus.Idle || _status == BuildRequestEngineStatus.Waiting, "Engine must be Active, Idle or Waiting to clean up, but is {0}.", _status); 314ChangeStatus(BuildRequestEngineStatus.Uninitialized); 330ErrorUtilities.VerifyThrow(_status != BuildRequestEngineStatus.Shutdown && _status != BuildRequestEngineStatus.Uninitialized, "Engine loop not yet started, status is {0}.", _status); 400ErrorUtilities.VerifyThrow(_status != BuildRequestEngineStatus.Shutdown && _status != BuildRequestEngineStatus.Uninitialized, "Engine loop not yet started, status is {0}.", _status); 501ErrorUtilities.VerifyThrow(_status != BuildRequestEngineStatus.Shutdown && _status != BuildRequestEngineStatus.Uninitialized, "Engine loop not yet started, status is {0}.", _status); 612ErrorUtilities.VerifyThrow(_status == BuildRequestEngineStatus.Uninitialized, "Cleanup wasn't called, status is {0}", _status); 615ChangeStatus(BuildRequestEngineStatus.Shutdown); 687private void RaiseEngineStatusChanged(BuildRequestEngineStatus newStatus) 707private void ChangeStatus(BuildRequestEngineStatus newStatus) 786ChangeStatus(BuildRequestEngineStatus.Active); 791waitingRequests == 0 ? BuildRequestEngineStatus.Idle : BuildRequestEngineStatus.Waiting); 796ChangeStatus(BuildRequestEngineStatus.Active);
BackEnd\Components\BuildRequestEngine\IBuildRequestEngine.cs (2)
36internal delegate void EngineStatusChangedDelegate(BuildRequestEngineStatus newStatus); 137BuildRequestEngineStatus Status { get; }
BackEnd\Node\InProcNode.cs (1)
309if (_buildRequestEngine != null && _buildRequestEngine.Status != BuildRequestEngineStatus.Uninitialized)
BackEnd\Node\OutOfProcNode.cs (1)
448if (_buildRequestEngine != null && _buildRequestEngine.Status != BuildRequestEngineStatus.Uninitialized)
Microsoft.Build.Engine.UnitTests (25)
BackEnd\BuildRequestEngine_Tests.cs (25)
265private BuildRequestEngineStatus _engineStatusChanged_Status; 302if (_engine.Status != BuildRequestEngineStatus.Uninitialized) 344VerifyEngineStatus(BuildRequestEngineStatus.Uninitialized, true); 348VerifyEngineStatus(BuildRequestEngineStatus.Idle); 351VerifyEngineStatus(BuildRequestEngineStatus.Active); 358VerifyEngineStatus(BuildRequestEngineStatus.Uninitialized); 375VerifyEngineStatus(BuildRequestEngineStatus.Uninitialized, true); 377VerifyEngineStatus(BuildRequestEngineStatus.Idle); 380VerifyEngineStatus(BuildRequestEngineStatus.Active); 386VerifyEngineStatus(BuildRequestEngineStatus.Idle); 409VerifyEngineStatus(BuildRequestEngineStatus.Uninitialized, true); 411VerifyEngineStatus(BuildRequestEngineStatus.Idle); 414VerifyEngineStatus(BuildRequestEngineStatus.Active); 422VerifyEngineStatus(BuildRequestEngineStatus.Waiting); 432VerifyEngineStatus(BuildRequestEngineStatus.Active); 439VerifyEngineStatus(BuildRequestEngineStatus.Idle); 464VerifyEngineStatus(BuildRequestEngineStatus.Uninitialized, true); 466VerifyEngineStatus(BuildRequestEngineStatus.Idle); 469VerifyEngineStatus(BuildRequestEngineStatus.Active); 476VerifyEngineStatus(BuildRequestEngineStatus.Waiting); 497VerifyEngineStatus(BuildRequestEngineStatus.Active); 503VerifyEngineStatus(BuildRequestEngineStatus.Idle); 518private void VerifyEngineStatus(BuildRequestEngineStatus expectedStatus, bool isNotKickedOff = false) 528BuildRequestEngineStatus engineStatus = engine.Status; 582private void Engine_EngineStatusChanged(BuildRequestEngineStatus newStatus)