4 instantiations of UrlSnapshot
Aspire.Hosting (2)
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) });
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)
74var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
13 references to UrlSnapshot
Aspire.Hosting (6)
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;
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
82var portalUrls = new List<UrlSnapshot>();
Aspire.Hosting.Tests (6)
Codespaces\CodespacesUrlRewriterTests.cs (1)
74var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
WithUrlsTests.cs (5)
305ImmutableArray<UrlSnapshot> initialUrlSnapshot = default; 341ImmutableArray<UrlSnapshot> initialUrlSnapshot = default; 380ImmutableArray<UrlSnapshot> initialUrlSnapshot = default; 381ImmutableArray<UrlSnapshot> urlSnapshotAfterRunning = default; 432ImmutableArray<UrlSnapshot> urlSnapshot = default;