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