4 writes to Start
Aspire.Hosting (3)
Dcp\ContainerCreator.cs (1)
198
ctr.Spec.
Start
= false;
Dcp\DcpExecutor.cs (2)
1220
await PatchDcpObjectAsync(cr.DcpResource, static c => c.Spec.
Start
= true, cancellationToken).ConfigureAwait(false);
1233
cr.DcpResource.Spec.
Start
= true;
Aspire.Hosting.Tests (1)
Dcp\TestKubernetesService.cs (1)
390
ctr.Spec.
Start
= cu.Spec.Start;
12 references to Start
Aspire.Hosting (6)
Dcp\ContainerCreator.cs (1)
254
return !DcpModelUtilities.ShouldDeferCreateForExplicitStart(resource.ModelResource, resource.DcpResource.Spec.
Start
);
Dcp\DcpExecutor.cs (3)
1067
Container { Spec.
Start
: false } => true,
1217
case RenderedModelResource<Container> { DcpResource.Spec.
Start
: false } cr when !DcpModelUtilities.ShouldDeferCreateForExplicitStart(cr.ModelResource, cr.DcpResource.Spec.
Start
):
Dcp\DcpResourceWatcher.cs (1)
503
if (container.Spec.
Start
== false && (container.Status?.State == null || container.Status?.State == ContainerState.Pending))
Dcp\ResourceSnapshotBuilder.cs (1)
33
if (container.Spec.
Start
is false && (state == null || state == ContainerState.Pending))
Aspire.Hosting.Tests (6)
Dcp\DcpExecutorTests.cs (3)
9197
var startedContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.AppModelResourceName == "aContainer" && c.Spec.
Start
== true);
9296
Assert.False(container.Spec.
Start
);
9308
Assert.True(container.Spec.
Start
);
Dcp\TestKubernetesService.cs (2)
388
if (cu.Spec.
Start
is not null)
390
ctr.Spec.Start = cu.Spec.
Start
;
DistributedApplicationTests.cs (1)
2059
Assert.False(dcpContainer.Spec.
Start
.GetValueOrDefault(true));