40 instantiations of ResourceUrlAnnotation
Aspire.Hosting (9)
Aspire.Hosting.Azure.EntraId.Tests (5)
EntraIdProvisioningTests.cs (5)
901new() { Url = "https://web-hashr.dev.localhost:7081", Endpoint = endpoint, DisplayLocation = UrlDisplayLocation.SummaryAndDetails },
902new() { Url = "https://localhost:7081", Endpoint = endpoint, DisplayLocation = UrlDisplayLocation.DetailsOnly }
965var urls = new List<ResourceUrlAnnotation> { new() { Url = "/swagger", Endpoint = web.GetEndpoint("https") } };
994new() { Url = "https://localhost:7081", Endpoint = web.GetEndpoint("https"), DisplayLocation = UrlDisplayLocation.DetailsOnly },
995new() { Url = "https://other.dev.localhost:7082", Endpoint = other.GetEndpoint("https"), DisplayLocation = UrlDisplayLocation.SummaryAndDetails }
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.DevTunnels.Tests (1)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Qdrant (1)
Aspire.Hosting.Tests (17)
Stress.AppHost (1)
TestShop.AppHost (2)
80 references to ResourceUrlAnnotation
Aspire.Hosting (30)
ResourceBuilderExtensions.cs (10)
2335/// To modify the URL for a specific endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Action{ResourceUrlAnnotation})"/>.
2363foreach (var u in c.Urls)
2466/// To add another URL for an endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Func{EndpointReference, ResourceUrlAnnotation})"/>.
2495public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, string endpointName, Action<ResourceUrlAnnotation> callback)
2509var url = context.Urls.FirstOrDefault(u => u.Endpoint?.EndpointName == endpointName);
2532/// To customize the URL that is automatically added for an endpoint, use <see cref="WithUrlForEndpoint{T}(IResourceBuilder{T}, string, Action{ResourceUrlAnnotation})"/>.
2549public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, string endpointName, Func<EndpointReference, ResourceUrlAnnotation> callback)
2557var url = callback(endpoint).WithEndpoint(endpoint);
2583public static IResourceBuilder<T> WithUrlForEndpoint<T>(this IResourceBuilder<T> builder, EndpointReference endpoint, Action<ResourceUrlAnnotation> callback)
2596var url = context.Urls.FirstOrDefault(u =>
Aspire.Hosting.Azure.EntraId (1)
Aspire.Hosting.Azure.EntraId.Tests (3)
Aspire.Hosting.Azure.Tests (4)
Aspire.Hosting.Foundry (1)
Aspire.Hosting.Foundry.Tests (2)
Aspire.Hosting.Qdrant.Tests (1)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.Tests (35)