1 instantiation of ReplicaAnnotation
Aspire.Hosting.Tests (1)
WaitForTests.cs (1)
273.WithAnnotation(new ReplicaAnnotation(2));
7 references to ReplicaAnnotation
Aspire.Hosting (5)
ApplicationModel\ResourceExtensions.cs (3)
303/// <see cref="ReplicaAnnotation" /> is found. 309if (resource.TryGetLastAnnotation<ReplicaAnnotation>(out var replicaAnnotation))
ApplicationModel\ResourceNotificationService.cs (2)
188if (dependency.TryGetLastAnnotation<ReplicaAnnotation>(out var replicaAnnotation) && replicaAnnotation.Replicas > 1)
Aspire.Hosting.Tests (2)
ProjectResourceTests.cs (2)
215var replica = Assert.Single(resource.Annotations.OfType<ReplicaAnnotation>());