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