5 instantiations of UrlSnapshot
Aspire.Hosting (3)
Dcp\ResourceSnapshotBuilder.cs (2)
213urls.Add(new(Name: endpointUrl.Endpoint!.EndpointName, Url: endpointUrl.Url, IsInternal: endpointUrl.IsInternal) { IsInactive = isInactive, DisplayProperties = new(endpointUrl.DisplayText ?? "", endpointUrl.DisplayOrder ?? 0) }); 221urls.Add(new(Name: null, Url: url.Url, IsInternal: url.IsInternal) { IsInactive = !resourceRunning, DisplayProperties = new(url.DisplayText ?? "", url.DisplayOrder ?? 0) });
Orchestrator\ApplicationOrchestrator.cs (1)
122urls = resourceUrls.Select(url => new UrlSnapshot(Name: url.Endpoint?.EndpointName, Url: url.Url, IsInternal: url.DisplayLocation == UrlDisplayLocation.DetailsOnly)
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
88portalUrls.Add(new(Name: "deployment", Url: GetDeploymentUrl(id), IsInternal: false));
Aspire.Hosting.Tests (1)
Codespaces\CodespacesUrlRewriterTests.cs (1)
73var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
14 references to UrlSnapshot
Aspire.Hosting (7)
ApplicationModel\CustomResourceSnapshot.cs (1)
109public ImmutableArray<UrlSnapshot> Urls { get; init; } = [];
Dcp\ResourceSnapshotBuilder.cs (2)
186private ImmutableArray<UrlSnapshot> GetUrls(CustomResource resource, string? resourceState) 188var urls = ImmutableArray.CreateBuilder<UrlSnapshot>();
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (3)
30Dictionary<UrlSnapshot, UrlSnapshot>? remappedUrls = null; 58select remappedUrls.TryGetValue(originalUrl, out var remappedUrl) ? remappedUrl : originalUrl;
Orchestrator\ApplicationOrchestrator.cs (1)
119IEnumerable<UrlSnapshot> urls = [];
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
82var portalUrls = new List<UrlSnapshot>();
Aspire.Hosting.Tests (6)
Codespaces\CodespacesUrlRewriterTests.cs (1)
73var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
WithUrlsTests.cs (5)
334ImmutableArray<UrlSnapshot> initialUrlSnapshot = default; 370ImmutableArray<UrlSnapshot> initialUrlSnapshot = default; 409ImmutableArray<UrlSnapshot> initialUrlSnapshot = default; 410ImmutableArray<UrlSnapshot> urlSnapshotAfterRunning = default; 461ImmutableArray<UrlSnapshot> urlSnapshot = default;