10 references to Service
Aspire.Hosting (10)
Dcp\DcpExecutor.cs (8)
636.Where(sr => !sr.Service.HasCompleteAddress && sr.Service.Spec.AddressAllocationMode != AddressAllocationModes.Proxyless) 658var srvResource = needAddressAllocated.FirstOrDefault(sr => sr.Service.Metadata.Name == updated.Metadata.Name); 667srvResource.Service.ApplyAddressInfoFrom(updated); 681var dcpSvc = await _kubernetesService.GetAsync<Service>(sar.Service.Metadata.Name, cancellationToken: cancellationToken).ConfigureAwait(false); 684sar.Service.ApplyAddressInfoFrom(dcpSvc); 688_distributedApplicationLogger.LogWarning("Unable to allocate a network port for service '{ServiceName}'; service may be unreachable and its clients may not work properly.", sar.Service.Metadata.Name); 1423var spAnn = new ServiceProducerAnnotation(sp.Service.Metadata.Name);
Dcp\ResourceSnapshotBuilder.cs (2)
203var resourceServices = _resourceState.AppResources.OfType<ServiceAppResource>().Where(r => r.Service.AppModelResourceName == resource.AppModelResourceName).Select(s => s.Service).ToList();