30 references to AppModelResourceName
Aspire.Hosting (11)
Dcp\DcpExecutor.cs (2)
424
var resourceName = resource.
AppModelResourceName
;
716
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)
1203
var implicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ImplicitDefault");
1206
var explicitDefaultContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitDefault");
1209
var explicitAlwaysContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitAlways");
1212
var explicitMissingContainer = Assert.Single(kubernetesService.CreatedResources.OfType<Container>(), c => c.
AppModelResourceName
== "ExplicitMissing");
1589
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1596
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1633
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1670
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1674
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1711
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1747
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1789
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1831
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1873
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1910
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
1947
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
1990
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
DistributedApplicationTests.cs (2)
1520
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));
1595
var service = Assert.Single(exeList, c => $"{testName}-servicea".Equals(c.
AppModelResourceName
));