30 references to AppModelResourceName
Aspire.Hosting (11)
Dcp\DcpExecutor.cs (2)
420
var resourceName = resource.
AppModelResourceName
;
712
var appModelResourceName = cr.
AppModelResourceName
;
Dcp\ResourceSnapshotBuilder.cs (9)
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
;
243
var resourceServices = _resourceState.AppResources.OfType<ServiceWithModelResource>().Where(r => r.Service.
AppModelResourceName
== resource.
AppModelResourceName
).Select(s => s.Service).ToList();
Aspire.Hosting.Tests (19)
Dcp\DcpExecutorTests.cs (17)
1202
var implicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ImplicitDefault");
1205
var explicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitDefault");
1208
var explicitAlwaysContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitAlways");
1211
var explicitMissingContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitMissing");
1583
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1590
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1627
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1664
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1668
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1705
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1741
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1783
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1825
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1867
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1904
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
1941
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
1984
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
DistributedApplicationTests.cs (2)
1349
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));
1407
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));