35 references to AppModelResourceName
Aspire.Hosting (12)
Dcp\DcpExecutor.cs (2)
500
var resourceName = resource.
AppModelResourceName
;
792
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 (23)
Dcp\DcpExecutorTests.cs (21)
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");
1694
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1701
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1738
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1775
var debuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1779
var nonDebuggableExe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestOtherExecutable");
1816
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1852
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1894
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1936
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
1978
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "TestExecutable");
2015
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2052
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2095
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2175
var exe = Assert.Single(dcpExes, e => e.
AppModelResourceName
== "ServiceA");
2235
.Where(x => x.
AppModelResourceName
== resource.Name
2249
.Where(c => c.
AppModelResourceName
== container.Resource.Name)
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
));