1 instantiation of ServiceWithModelResource
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
1081_appResources.Add(new ServiceWithModelResource(sp.ModelResource, svc, endpoint));
14 references to ServiceWithModelResource
Aspire.Hosting (14)
Dcp\AppResource.cs (4)
60public new virtual List<ServiceWithModelResource> ServicesProduced { get; } = []; 61public virtual List<ServiceWithModelResource> ServicesConsumed { get; } = []; 69public override List<ServiceWithModelResource> ServicesProduced 73public override List<ServiceWithModelResource> ServicesConsumed
Dcp\DcpExecutor.cs (9)
863var primaryService = _appResources.OfType<ServiceWithModelResource>().Select(sar => sar.Service) 917foreach (var sp in appResource.ServicesProduced) 977var serverSvc = _appResources.OfType<ServiceWithModelResource>().FirstOrDefault(swr => 1159var serverSvc = _appResources.OfType<ServiceWithModelResource>().FirstOrDefault(swr => 1925var servicesProduced = _appResources.OfType<ServiceWithModelResource>().Where(r => r.ModelResource == modelResource); 1926foreach (var sp in servicesProduced) 2863foreach (var sp in cr.ServicesProduced)
Dcp\ResourceSnapshotBuilder.cs (1)
243var resourceServices = _resourceState.AppResources.OfType<ServiceWithModelResource>().Where(r => r.Service.AppModelResourceName == resource.AppModelResourceName).Select(s => s.Service).ToList();