4 writes to Start
Aspire.Hosting (3)
Dcp\ContainerCreator.cs (1)
139
ctr.Spec.
Start
= false;
Dcp\DcpExecutor.cs (2)
1178
await PatchDcpObjectAsync(cr.DcpResource, static c => c.Spec.
Start
= true, cancellationToken).ConfigureAwait(false);
1191
cr.DcpResource.Spec.
Start
= true;
Aspire.Hosting.Tests (1)
Dcp\TestKubernetesService.cs (1)
444
ctr.Spec.
Start
= cu.Spec.Start;
12 references to Start
Aspire.Hosting (6)
Dcp\ContainerCreator.cs (1)
162
return !DcpModelUtilities.ShouldDeferCreateForExplicitStart(resource.ModelResource, resource.DcpResource.Spec.
Start
);
Dcp\DcpExecutor.cs (3)
1022
Container { Spec.
Start
: false } => true,
1175
case RenderedModelResource<Container> { DcpResource.Spec.
Start
: false } cr when !DcpModelUtilities.ShouldDeferCreateForExplicitStart(cr.ModelResource, cr.DcpResource.Spec.
Start
):
Dcp\DcpResourceWatcher.cs (1)
557
if (container.Spec.
Start
== false && (container.Status?.State == null || container.Status?.State == ContainerState.Pending))
Dcp\ResourceSnapshotBuilder.cs (1)
34
if (container.Spec.
Start
is false && (state == null || state == ContainerState.Pending))
Aspire.Hosting.Tests (6)
Dcp\DcpExecutorTests.cs (3)
11059
var startedContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.AppModelResourceName == "aContainer" && c.Spec.
Start
== true);
11158
Assert.False(container.Spec.
Start
);
11170
Assert.True(container.Spec.
Start
);
Dcp\TestKubernetesService.cs (2)
442
if (cu.Spec.
Start
is not null)
444
ctr.Spec.Start = cu.Spec.
Start
;
DistributedApplicationTests.cs (1)
2148
Assert.False(dcpContainer.Spec.
Start
.GetValueOrDefault(true));