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