69 references to BuildRequestEntryState
Microsoft.Build (31)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (8)
415if (entry.State == BuildRequestEntryState.Waiting) 528if (currentEntry.State == BuildRequestEntryState.Waiting) 634private void BuildRequestEntry_StateChanged(BuildRequestEntry entry, BuildRequestEntryState newState) 733case BuildRequestEntryState.Active: 740case BuildRequestEntryState.Complete: 746case BuildRequestEntryState.Waiting: 751case BuildRequestEntryState.Ready: 1277if (issuingEntry.State == BuildRequestEntryState.Ready)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (19)
22internal delegate void BuildRequestEntryStateChangedDelegate(BuildRequestEntry entry, BuildRequestEntryState newState); 134ChangeState(BuildRequestEntryState.Ready); 156public BuildRequestEntryState State { get; private set; } 217ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Must be in Active state to wait for blocking request. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 221ChangeState(BuildRequestEntryState.Waiting); 307ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Waiting || _outstandingRequests == null, "Entry must be in the Waiting state to report results, or we must have flushed our requests due to an error. Config: {0} State: {1} Requests: {2}", RequestConfiguration.ConfigurationId, State, _outstandingRequests != null); 373ChangeState(BuildRequestEntryState.Ready); 385ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Waiting, "Entry must be in the waiting state to be unblocked. Config: {0} State: {1} Request: {2}", RequestConfiguration.ConfigurationId, State, Request.GlobalRequestId); 390ChangeState(BuildRequestEntryState.Ready); 405ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Ready, "Entry must be in the Ready state. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 410ChangeState(BuildRequestEntryState.Active); 423if (State == BuildRequestEntryState.Waiting) 451ChangeState(BuildRequestEntryState.Ready); 482ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Entry must be active before it can be Completed successfully. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 489ChangeState(BuildRequestEntryState.Complete); 500ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active || State == BuildRequestEntryState.Waiting, "Must be in Active or Waiting state to wait for results. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 528ChangeState(BuildRequestEntryState.Waiting); 536private void ChangeState(BuildRequestEntryState newState)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
746ErrorUtilities.VerifyThrow(_requestEntry.State == BuildRequestEntryState.Ready, "Entry is not in the Ready state, it is in the {0} state.", _requestEntry.State); 754ErrorUtilities.VerifyThrow(_requestEntry.State == BuildRequestEntryState.Active, "Entry is not in the Active state, it is in the {0} state.", _requestEntry.State); 762ErrorUtilities.VerifyThrow(_requestEntry.State == BuildRequestEntryState.Active || _requestEntry.State == BuildRequestEntryState.Waiting,
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildRequestEntry_Tests.cs (33)
28Assert.Equal(BuildRequestEntryState.Ready, entry.State); 47Assert.Equal(BuildRequestEntryState.Ready, entry.State); 53Assert.Equal(BuildRequestEntryState.Active, entry.State); 60Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 68Assert.Equal(BuildRequestEntryState.Ready, entry.State); 74Assert.Equal(BuildRequestEntryState.Active, entry.State); 84Assert.Equal(BuildRequestEntryState.Complete, entry.State); 98Assert.Equal(BuildRequestEntryState.Active, entry.State); 108Assert.Equal(BuildRequestEntryState.Ready, entry.State); 120Assert.Equal(BuildRequestEntryState.Active, entry.State); 124Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 128Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 133Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 138Assert.Equal(BuildRequestEntryState.Ready, entry.State); 147Assert.Equal(BuildRequestEntryState.Ready, entry.State); 150Assert.Equal(BuildRequestEntryState.Active, entry.State); 154Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 158Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 163Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 168Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 173Assert.Equal(BuildRequestEntryState.Ready, entry.State); 185Assert.Equal(BuildRequestEntryState.Ready, entry.State); 201Assert.Equal(BuildRequestEntryState.Ready, entry.State); 218Assert.Equal(BuildRequestEntryState.Ready, entry.State); 221Assert.Equal(BuildRequestEntryState.Active, entry.State); 225Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 241Assert.Equal(BuildRequestEntryState.Ready, entry.State); 244Assert.Equal(BuildRequestEntryState.Active, entry.State); 249Assert.Equal(BuildRequestEntryState.Complete, entry.State); 261Assert.Equal(BuildRequestEntryState.Ready, entry.State); 264Assert.Equal(BuildRequestEntryState.Active, entry.State); 268Assert.Equal(BuildRequestEntryState.Waiting, entry.State); 274Assert.Equal(BuildRequestEntryState.Waiting, entry.State);
BackEnd\RequestBuilder_Tests.cs (5)
97Assert.Equal(BuildRequestEntryState.Complete, entry.State); 130Assert.Equal(BuildRequestEntryState.Complete, entry.State); 169Assert.Equal(BuildRequestEntryState.Complete, entry.State); 211Assert.Equal(BuildRequestEntryState.Complete, entry.State); 233Assert.Equal(BuildRequestEntryState.Complete, entry.State);