3 instantiations of ResourceUrlsCallbackAnnotation
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
890return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 913return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 977return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(async c =>
8 references to ResourceUrlsCallbackAnnotation
Aspire.Hosting (4)
ApplicationModel\ResourceEndpointsAllocatedEvent.cs (1)
12/// Any resources that customize their URLs via a <see cref="ResourceUrlsCallbackAnnotation"/> will have their callbacks invoked during this event.
ApplicationModel\ResourceUrlsCallbackAnnotation.cs (1)
12/// Initializes a new instance of the <see cref="ResourceUrlsCallbackAnnotation"/> class with the specified callback.
Orchestrator\ApplicationOrchestrator.cs (2)
259if (resource.TryGetAnnotationsOfType<ResourceUrlsCallbackAnnotation>(out var callbacks)) 265foreach (var callback in callbacks)
Aspire.Hosting.Tests (4)
WithUrlsTests.cs (4)
26var urlsCallback = projectA.Resource.Annotations.OfType<ResourceUrlsCallbackAnnotation>() 39Assert.Empty(projectA.Resource.Annotations.OfType<ResourceUrlsCallbackAnnotation>()); 43Assert.NotEmpty(projectA.Resource.Annotations.OfType<ResourceUrlsCallbackAnnotation>());