39 references to AppModelResourceName
Aspire.Hosting (12)
Dcp\DcpExecutor.cs (2)
500
var resourceName = resource.
AppModelResourceName
;
797
var appModelResourceName = cr.
AppModelResourceName
;
Dcp\ResourceSnapshotBuilder.cs (10)
38
if (container.
AppModelResourceName
is not null &&
39
_resourceState.ApplicationModel.TryGetValue(container.
AppModelResourceName
, out var appModelResource))
97
_ = executable.
AppModelResourceName
is not null && _resourceState.ApplicationModel.TryGetValue(executable.
AppModelResourceName
, out appModelResource);
134
if (executable.
AppModelResourceName
is not null &&
135
_resourceState.ApplicationModel.TryGetValue(executable.
AppModelResourceName
, out appModelResource))
234
var appModelResourceName = resource.
AppModelResourceName
;
244
.Where(r => r.Service.
AppModelResourceName
== resource.
AppModelResourceName
)
295
.Where(r => r.Service.
AppModelResourceName
== endpointOwnerResourceName)
Aspire.Hosting.Tests (27)
Dcp\DcpExecutorTests.cs (25)
1305
var implicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ImplicitDefault");
1308
var explicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitDefault");
1311
var explicitAlwaysContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitAlways");
1314
var explicitMissingContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitMissing");
1317
var explicitNeverContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitNever");
1727
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1734
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1771
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1808
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1812
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1849
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1885
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1927
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1969
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
2011
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
2048
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2085
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2128
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2208
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2268
.Where(x => x.
AppModelResourceName
== resource.Name
2282
.Where(c => c.
AppModelResourceName
== container.Resource.Name)
2384
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
2433
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "proj");
2488
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "proj");
2537
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "proj");
DistributedApplicationTests.cs (2)
1641
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));
1714
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));