2 writes to _states
Aspire.Hosting.Native.Server (2)
Api\PipelineApi.cs (2)
181
_states
= null;
243
_states
= Select(target).ToDictionary(step => step.Name, _ => 0, StringComparer.Ordinal);
11 references to _states
Aspire.Hosting.Native.Server (11)
Api\PipelineApi.cs (11)
239
if (
_states
is not null || _complete)
251
if (
_states
is null)
259
var ready = _steps!.Where(step =>
_states
.GetValueOrDefault(step.Name, -1) == 0 &&
260
step.DependsOn.All(name =>
_states
[name] == 2)).Select(step => step.Name).ToArray();
263
_states
[name] = 1;
287
_states
![step] = failed ? 3 : 2;
382
if (
_states
?.Values.Any(state => state == 1) == true)
386
if (!failed && (
_states
is null || _failed ||
_states
.Values.Any(state => state != 2)))
402
if (_complete ||
_states
is null ||
_states
.GetValueOrDefault(step, -1) != 1)