3 instantiations of ResourceUrlsCallbackAnnotation
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
905return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 928return builder.WithAnnotation(new ResourceUrlsCallbackAnnotation(callback)); 992return 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)
224if (resource.TryGetAnnotationsOfType<ResourceUrlsCallbackAnnotation>(out var callbacks)) 230foreach (var callback in callbacks)
Aspire.Hosting.Tests (4)
WithUrlsTests.cs (4)
27var urlsCallback = projectA.Resource.Annotations.OfType<ResourceUrlsCallbackAnnotation>() 40Assert.Empty(projectA.Resource.Annotations.OfType<ResourceUrlsCallbackAnnotation>()); 44Assert.NotEmpty(projectA.Resource.Annotations.OfType<ResourceUrlsCallbackAnnotation>());