34 references to AppModelResourceName
Aspire.Hosting (12)
Dcp\DcpExecutor.cs (2)
436
var resourceName = resource.
AppModelResourceName
;
728
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 (22)
Dcp\DcpExecutorTests.cs (20)
1304
var implicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ImplicitDefault");
1307
var explicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitDefault");
1310
var explicitAlwaysContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitAlways");
1313
var explicitMissingContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitMissing");
1316
var explicitNeverContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitNever");
1693
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1700
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1737
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1774
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1778
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1815
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1851
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1893
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1935
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1977
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
2014
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2051
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2094
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2174
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2230
.Where(x => x.
AppModelResourceName
== resource.Name
DistributedApplicationTests.cs (2)
1637
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));
1709
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));