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