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