6 references to DcpInstancesAnnotation
Aspire.Hosting (6)
ApplicationModel\ResourceExtensions.cs (2)
315if (resource.TryGetLastAnnotation<DcpInstancesAnnotation>(out var replicaAnnotation) && !replicaAnnotation.Instances.IsEmpty)
Dcp\ApplicationExecutor.cs (3)
1500if (!resource.TryGetLastAnnotation<DcpInstancesAnnotation>(out var replicaAnnotation)) 1502throw new DistributedApplicationException($"Couldn't find required {nameof(DcpInstancesAnnotation)} annotation on resource {resource.Name}.");
Dcp\DcpNameGenerator.cs (1)
30if (resource.TryGetLastAnnotation<DcpInstancesAnnotation>(out _))