8 instantiations of UrlSnapshot
Aspire.Hosting (5)
Dcp\ResourceSnapshotBuilder.cs (3)
273new(Name: endpointUrl.Endpoint!.EndpointName, 302new(Name: endpointName, Url: endpointUrl.Url, IsInternal: endpointUrl.IsInternal) 313new(Name: null, Url: url.Url, IsInternal: url.IsInternal)
ExternalServiceBuilderExtensions.cs (1)
162return urlSnapshots.Add(new(Name: null, uri.ToString(), IsInternal: false));
Orchestrator\ApplicationOrchestrator.cs (1)
155urls = resourceUrls.Select(url => new UrlSnapshot(Name: url.Endpoint?.EndpointName, Url: url.Url, IsInternal: url.DisplayLocation == UrlDisplayLocation.DetailsOnly)
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
90portalUrls.Add(new(Name: "deployment", Url: GetDeploymentUrl(id), IsInternal: false)); 207Urls = [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (1)
Codespaces\CodespacesUrlRewriterTests.cs (1)
71var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
23 references to UrlSnapshot
Aspire.Hosting (14)
ApplicationModel\CustomResourceSnapshot.cs (1)
109public ImmutableArray<UrlSnapshot> Urls { get; init; } = [];
Dashboard\proto\Partials.cs (1)
55foreach (var urlSnapshot in snapshot.Urls)
Dashboard\ResourceSnapshot.cs (1)
27public required ImmutableArray<UrlSnapshot> Urls { get; init; }
Dcp\ResourceSnapshotBuilder.cs (2)
231private ImmutableArray<UrlSnapshot> GetUrls(CustomResource resource, string? resourceState) 233var urls = ImmutableArray.CreateBuilder<UrlSnapshot>();
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (5)
30Dictionary<UrlSnapshot, UrlSnapshot>? remappedUrls = null; 32foreach (var originalUrlSnapshot in resourceEvent.Snapshot.Urls) 40var newUrlSnapshot = originalUrlSnapshot with 58select remappedUrls.TryGetValue(originalUrl, out var remappedUrl) ? remappedUrl : originalUrl;
ExternalServiceBuilderExtensions.cs (2)
155static ImmutableArray<UrlSnapshot> AddUrlIfNotPresent(ImmutableArray<UrlSnapshot> urlSnapshots, Uri uri)
Orchestrator\ApplicationOrchestrator.cs (2)
150private static IEnumerable<UrlSnapshot> GetResourceUrls(IResource resource) 152IEnumerable<UrlSnapshot> urls = [];
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
84var portalUrls = new List<UrlSnapshot>();
Aspire.Hosting.Tests (8)
Codespaces\CodespacesUrlRewriterTests.cs (1)
71var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
WithUrlsTests.cs (7)
472var urlSnapshots = new List<UrlSnapshot[]>(); 474static string FormatUrls(IEnumerable<UrlSnapshot> urls) => 519var initUrl = Assert.Single(initialized); 590var urlSnapshots = new List<UrlSnapshot[]>(); 592static string FormatUrls(IEnumerable<UrlSnapshot> urls) => 637var initUrl = Assert.Single(initialized); 987var crossResourceUrl = resourceEvent.Snapshot.Urls.FirstOrDefault(u => u.DisplayProperties.DisplayName == "API Docs");