8 writes to Start
Aspire.Hosting (3)
Dcp\DcpExecutor.cs (2)
1184
await PatchDcpObjectAsync(er.DcpResource, static e => e.Spec.
Start
= true, cancellationToken).ConfigureAwait(false);
1203
er.DcpResource.Spec.
Start
= true;
Dcp\ExecutableCreator.cs (1)
360
spec.
Start
= false;
Aspire.Hosting.Tests (5)
Dcp\ResourceSnapshotBuilderTests.cs (4)
721
executable.Spec.
Start
= false;
736
executable.Spec.
Start
= false;
751
executable.Spec.
Start
= false;
766
executable.Spec.
Start
= false;
Dcp\TestKubernetesService.cs (1)
417
exe.Spec.
Start
= eu.Spec.Start;
15 references to Start
Aspire.Hosting (6)
Dcp\DcpExecutor.cs (3)
1023
Executable { Spec.
Start
: false } => true,
1181
case RenderedModelResource<Executable> { DcpResource.Spec.
Start
: false } er when !DcpModelUtilities.ShouldDeferCreateForExplicitStart(er.ModelResource, er.DcpResource.Spec.
Start
):
Dcp\DcpResourceWatcher.cs (1)
567
if (executable.Spec.
Start
== false && IsNotStartedExecutableState(executable.Status?.State))
Dcp\ExecutableCreator.cs (1)
50
resource.DcpResource.Spec.
Start
);
Dcp\ResourceSnapshotBuilder.cs (1)
157
if (executable.Spec.
Start
is false && IsNotStartedExecutableState(state))
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
121
Assert.False(executable.Spec.
Start
);
Aspire.Hosting.Tests (8)
Dcp\DcpExecutorTests.cs (5)
353
Assert.All(created, executable => Assert.True(executable.Spec.
Start
));
6927
Assert.True(exe.Spec.
Start
);
10619
var startedExecutable = Assert.Single(GetCreatedExecutablesForResource(kubernetesService, "anExecutable"), e => e.Spec.
Start
== true);
10710
Assert.False(executable.Spec.
Start
);
10722
Assert.True(executable.Spec.
Start
);
Dcp\TestKubernetesService.cs (2)
415
if (eu.Spec.
Start
is not null)
417
exe.Spec.Start = eu.Spec.
Start
;
DistributedApplicationTests.cs (1)
2157
Assert.False(dcpExecutable.Spec.
Start
.GetValueOrDefault(true));