8 writes to Start
Aspire.Hosting (3)
Dcp\DcpExecutor.cs (2)
1266
await PatchDcpObjectAsync(er.DcpResource, static e => e.Spec.
Start
= true, cancellationToken).ConfigureAwait(false);
1285
er.DcpResource.Spec.
Start
= true;
Dcp\ExecutableCreator.cs (1)
353
spec.
Start
= false;
Aspire.Hosting.Tests (5)
Dcp\ResourceSnapshotBuilderTests.cs (4)
219
executable.Spec.
Start
= false;
234
executable.Spec.
Start
= false;
249
executable.Spec.
Start
= false;
264
executable.Spec.
Start
= false;
Dcp\TestKubernetesService.cs (1)
412
exe.Spec.
Start
= eu.Spec.Start;
15 references to Start
Aspire.Hosting (6)
Dcp\DcpExecutor.cs (3)
1108
Executable { Spec.
Start
: false } => true,
1263
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)
156
if (executable.Spec.
Start
is false && IsNotStartedExecutableState(state))
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
131
Assert.False(executable.Spec.
Start
);
Aspire.Hosting.Tests (8)
Dcp\DcpExecutorTests.cs (5)
354
Assert.All(created, executable => Assert.True(executable.Spec.
Start
));
6243
Assert.True(exe.Spec.
Start
);
9930
var startedExecutable = Assert.Single(GetCreatedExecutablesForResource(kubernetesService, "anExecutable"), e => e.Spec.
Start
== true);
10021
Assert.False(executable.Spec.
Start
);
10033
Assert.True(executable.Spec.
Start
);
Dcp\TestKubernetesService.cs (2)
410
if (eu.Spec.
Start
is not null)
412
exe.Spec.Start = eu.Spec.
Start
;
DistributedApplicationTests.cs (1)
2079
Assert.False(dcpExecutable.Spec.
Start
.GetValueOrDefault(true));