15 references to Running
Aspire.Hosting.Native.Core (6)
Runtime\ResourceWorkload.cs (1)
292
publish(ResourceState.
Running
, lease.Endpoint);
Runtime\RuntimeGeneration.cs (3)
355
resource.State != ResourceState.
Running
&& !resource.AllocationPrepared)
763
if (state is not (ResourceState.Starting or ResourceState.
Running
or ResourceState.Failed or ResourceState.Stopped) ||
764
(healthy && state != ResourceState.
Running
) || urls.Length > 32 ||
Runtime\RuntimeStates.cs (2)
22
"Running" => ResourceState.
Running
,
84
ResourceState.
Running
=> "Running",
Aspire.Hosting.Native.Core.Tests (6)
NativeTimeProviderTests.cs (1)
211
cache.Publish(ResourceState.
Running
, healthy: true, []);
ResourceWorkloadTests.cs (1)
96
cacheOwner.Publish(ResourceState.
Running
, healthy: true, []);
RuntimeObservationTests.cs (2)
29
firstOwner.Publish(ResourceState.
Running
, healthy: true, ["http://localhost:8000"]);
52
owner.Publish(ResourceState.
Running
, healthy: true, []);
SymbolicValueTests.cs (2)
115
sourceOwner.Publish(ResourceState.
Running
, true, []);
223
Assert.Throws<ArgumentException>(() => owner.Publish(ResourceState.
Running
, false, ["https://example.test/?token=metadata-secret"]));
Aspire.Hosting.Native.Server (3)
Auxiliary\NativeAuxiliaryBackchannel.cs (2)
457
NativeWaitTarget.Up => resource.State == ResourceState.
Running
,
458
NativeWaitTarget.Healthy => resource.State == ResourceState.
Running
&& resource.Healthy,
Dashboard\NativeDashboardService.cs (1)
299
StateStyle = snapshot.State switch { ResourceState.
Running
=> "success", ResourceState.Failed => "error", _ => "info" }