19 instantiations of UrlSnapshot
Aspire.Hosting (5)
Dcp\ResourceSnapshotBuilder.cs (3)
324new(Name: endpointUrl.Endpoint!.EndpointName, 355new(Name: endpointName, Url: endpointUrl.Url, IsInternal: endpointUrl.IsInternal) 368new(Name: null, Url: url.Url, IsInternal: url.IsInternal)
ExternalServiceBuilderExtensions.cs (1)
186return urlSnapshots.Add(new(Name: null, uri.ToString(), IsInternal: false));
Orchestrator\ApplicationOrchestrator.cs (1)
223urls = resourceUrls.Select(url => new UrlSnapshot(Name: url.Endpoint?.EndpointName, Url: url.Url, IsInternal: url.DisplayLocation == UrlDisplayLocation.DetailsOnly)
Aspire.Hosting.Azure (3)
Provisioning\Provisioners\BicepProvisioner.cs (3)
125portalUrls.Add(new(Name: DeploymentUrlName, Url: GetDeploymentUrl(id), IsInternal: false)); 336Urls = [.. state.Urls.Where(static url => !string.Equals(url.Name, DeploymentUrlName, StringComparison.Ordinal)), new(Name: DeploymentUrlName, Url: deploymentUrl, IsInternal: false)], 693Urls = [.. state.Urls, new(Name: DeploymentUrlName, Url: url, IsInternal: false)],
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskResourceExtensions.cs (1)
240? [new("dashboard", url, false) { DisplayProperties = new() { DisplayName = "Task Hub Dashboard" } }]
Aspire.Hosting.Azure.Tests (3)
AzureEnvironmentResourceExtensionsTests.cs (3)
344new("deployment", "https://portal.azure.com", false) 2101Urls = [new("deployment", "https://portal.azure.com/storage", false)], 2108Urls = [new("deployment", "https://portal.azure.com/storage2", false)],
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
728builder.Add(new UrlSnapshot(
Aspire.Hosting.Foundry (1)
PromptAgent\AzurePromptAgentResource.cs (1)
435return [new UrlSnapshot(Name: "Foundry Portal", Url: portalUrl, IsInternal: false)];
Aspire.Hosting.Tests (5)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (3)
187new UrlSnapshot("http", "http://localhost:5000", false) { DisplayProperties = new UrlDisplayPropertiesSnapshot("HTTP Endpoint", 1) }, 188new UrlSnapshot("https", "https://localhost:5001", true) { DisplayProperties = new UrlDisplayPropertiesSnapshot("HTTPS Endpoint", 2) }, 189new UrlSnapshot("inactive", "http://localhost:5002", false) { IsInactive = true }
Codespaces\CodespacesUrlRewriterTests.cs (1)
72var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
ResourceNotificationTests.cs (1)
1506new UrlSnapshot("ep", "http://localhost:8080", IsInternal: false)
26 references to UrlSnapshot
Aspire.Hosting (14)
ApplicationModel\CustomResourceSnapshot.cs (1)
110public 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)
282private ImmutableArray<UrlSnapshot> GetUrls(CustomResource resource, string? resourceState) 284var 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)
179static ImmutableArray<UrlSnapshot> AddUrlIfNotPresent(ImmutableArray<UrlSnapshot> urlSnapshots, Uri uri)
Orchestrator\ApplicationOrchestrator.cs (2)
218private static IEnumerable<UrlSnapshot> GetResourceUrls(IResource resource) 220IEnumerable<UrlSnapshot> urls = [];
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
115var portalUrls = new List<UrlSnapshot>();
Aspire.Hosting.Blazor (2)
BlazorGatewayExtensions.cs (2)
722private static ImmutableArray<UrlSnapshot> BuildClientUrls( 725var builder = ImmutableArray.CreateBuilder<UrlSnapshot>(endpoints.Count);
Aspire.Hosting.Foundry (1)
PromptAgent\AzurePromptAgentResource.cs (1)
413private async Task<ImmutableArray<UrlSnapshot>> BuildPortalUrlsAsync(IConfiguration configuration, CancellationToken cancellationToken)
Aspire.Hosting.Tests (8)
Codespaces\CodespacesUrlRewriterTests.cs (1)
72var localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
WithUrlsTests.cs (7)
471var urlSnapshots = new List<UrlSnapshot[]>(); 473static string FormatUrls(IEnumerable<UrlSnapshot> urls) => 518var initUrl = Assert.Single(initialized); 587var urlSnapshots = new List<UrlSnapshot[]>(); 589static string FormatUrls(IEnumerable<UrlSnapshot> urls) => 634var initUrl = Assert.Single(initialized); 982var crossResourceUrl = resourceEvent.Snapshot.Urls.FirstOrDefault(u => u.DisplayProperties.DisplayName == "API Docs");