1 write to State
Microsoft.Build (1)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
540State = newState;
66 references to State
Microsoft.Build (28)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (6)
408TraceEngine("Request {0}({1}) (nr {2}) is now proceeding from current state {3}.", entry.Request.GlobalRequestId, entry.Request.ConfigurationId, entry.Request.NodeRequestId, entry.State); 415if (entry.State == BuildRequestEntryState.Waiting) 528if (currentEntry.State == BuildRequestEntryState.Waiting) 730switch (currentEntry.State) 760ErrorUtilities.ThrowInternalError("Unexpected BuildRequestEntry state " + currentEntry.State); 1277if (issuingEntry.State == BuildRequestEntryState.Ready)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (15)
217ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Must be in Active state to wait for blocking request. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 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); 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); 405ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Ready, "Entry must be in the Ready state. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 423if (State == BuildRequestEntryState.Waiting) 482ErrorUtilities.VerifyThrow(State == BuildRequestEntryState.Active, "Entry must be active before it can be Completed successfully. Config: {0} State: {1}", RequestConfiguration.ConfigurationId, State); 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); 538if (State != newState)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (7)
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, 763"Entry is not in the Active or Waiting state, it is in the {0} state.", _requestEntry.State);
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);