60 instantiations of ResourceUrlAnnotation
Aspire.Hosting (9)
Aspire.Hosting.Azure.EntraId.Tests (2)
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.DevTunnels.Tests (3)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Qdrant (1)
Aspire.Hosting.Tests (38)
Stress.AppHost (1)
TestShop.AppHost (2)
93 references to ResourceUrlAnnotation
Aspire.Hosting (35)
ResourceBuilderExtensions.cs (10)
2349/// To modify the URL for a specific endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Action{ResourceUrlAnnotation})"/>.
2377foreach (var u in c.Urls)
2480/// To add another URL for an endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Func{EndpointReference, ResourceUrlAnnotation})"/>.
2515public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, string endpointName, Action<ResourceUrlAnnotation> callback)
2529var url = context.Urls.FirstOrDefault(u => u.Endpoint?.EndpointName == endpointName);
2552/// To customize the URL that is automatically added for an endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Action{ResourceUrlAnnotation})"/>.
2569public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, string endpointName, Func<EndpointReference, ResourceUrlAnnotation> callback)
2577var url = callback(endpoint).WithEndpoint(endpoint);
2603public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, EndpointReference endpoint, Action<ResourceUrlAnnotation> callback)
2616var url = context.Urls.FirstOrDefault(u =>
Aspire.Hosting.Azure.EntraId.Tests (1)
Aspire.Hosting.Azure.Tests (4)
Aspire.Hosting.DevTunnels (2)
Aspire.Hosting.DevTunnels.Tests (1)
Aspire.Hosting.Foundry (1)
Aspire.Hosting.Foundry.Tests (2)
Aspire.Hosting.Qdrant.Tests (1)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.Tests (43)