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