8 references to NotStarted
Aspire.Hosting (6)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
117
static bool IsStopped(string? state) => KnownResourceStates.TerminalStates.Contains(state) || state == KnownResourceStates.
NotStarted
|| state == "Unknown";
ApplicationModel\CustomResourceSnapshot.cs (1)
373
public static readonly string NotStarted = nameof(
NotStarted
);
Dcp\DcpExecutor.cs (4)
918
await _executorEvents.PublishAsync(new OnResourceChangedContext(cancellationToken, resourceType, resource, er.DcpResource.Metadata.Name, new ResourceStatus(KnownResourceStates.
NotStarted
, null, null), s => s with { State = new ResourceStateSnapshot(KnownResourceStates.
NotStarted
, null) })).ConfigureAwait(false);
1183
await _executorEvents.PublishAsync(new OnResourceChangedContext(cancellationToken, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResourceName, new ResourceStatus(KnownResourceStates.
NotStarted
, null, null), s => s with { State = new ResourceStateSnapshot(KnownResourceStates.
NotStarted
, null) })).ConfigureAwait(false);
Aspire.Hosting.Tests (2)
DistributedApplicationTests.cs (2)
175
var notStartedResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.
NotStarted
).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
237
var notStartedResourceEvent = await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.
NotStarted
).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);