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)
239if (_states is not null || _complete) 251if (_states is null) 259var ready = _steps!.Where(step => _states.GetValueOrDefault(step.Name, -1) == 0 && 260step.DependsOn.All(name => _states[name] == 2)).Select(step => step.Name).ToArray(); 263_states[name] = 1; 287_states![step] = failed ? 3 : 2; 382if (_states?.Values.Any(state => state == 1) == true) 386if (!failed && (_states is null || _failed || _states.Values.Any(state => state != 2))) 402if (_complete || _states is null || _states.GetValueOrDefault(step, -1) != 1)