6 instantiations of UrlSnapshot
Aspire.Hosting (3)
Dcp\ResourceSnapshotBuilder.cs (2)
218
urls.Add(
new
(Name: endpointUrl.Endpoint!.EndpointName, Url: endpointUrl.Url, IsInternal: endpointUrl.IsInternal) { IsInactive = isInactive, DisplayProperties = new(endpointUrl.DisplayText ?? "", endpointUrl.DisplayOrder ?? 0) });
226
urls.Add(
new
(Name: null, Url: url.Url, IsInternal: url.IsInternal) { IsInactive = !resourceRunning, DisplayProperties = new(url.DisplayText ?? "", url.DisplayOrder ?? 0) });
Orchestrator\ApplicationOrchestrator.cs (1)
137
urls = 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)
76
portalUrls.Add(
new
(Name: "deployment", Url: GetDeploymentUrl(id), IsInternal: false));
185
Urls = [.. state.Urls,
new
(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (1)
Codespaces\CodespacesUrlRewriterTests.cs (1)
73
var localhostUrlSnapshot = new
UrlSnapshot
("Test", "http://localhost:1234", false);
19 references to UrlSnapshot
Aspire.Hosting (12)
ApplicationModel\CustomResourceSnapshot.cs (1)
109
public ImmutableArray<
UrlSnapshot
> Urls { get; init; } = [];
Dashboard\proto\Partials.cs (1)
45
foreach (
var
urlSnapshot in snapshot.Urls)
Dashboard\ResourceSnapshot.cs (1)
27
public required ImmutableArray<
UrlSnapshot
> Urls { get; init; }
Dcp\ResourceSnapshotBuilder.cs (2)
191
private ImmutableArray<
UrlSnapshot
> GetUrls(CustomResource resource, string? resourceState)
193
var urls = ImmutableArray.CreateBuilder<
UrlSnapshot
>();
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (5)
30
Dictionary<
UrlSnapshot
,
UrlSnapshot
>? remappedUrls = null;
32
foreach (
var
originalUrlSnapshot in resourceEvent.Snapshot.Urls)
40
var
newUrlSnapshot = originalUrlSnapshot with
58
select remappedUrls.TryGetValue(originalUrl, out
var
remappedUrl) ? remappedUrl : originalUrl;
Orchestrator\ApplicationOrchestrator.cs (2)
132
private static IEnumerable<
UrlSnapshot
> GetResourceUrls(IResource resource)
134
IEnumerable<
UrlSnapshot
> urls = [];
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
70
var portalUrls = new List<
UrlSnapshot
>();
Aspire.Hosting.Tests (6)
Codespaces\CodespacesUrlRewriterTests.cs (1)
73
var
localhostUrlSnapshot = new UrlSnapshot("Test", "http://localhost:1234", false);
WithUrlsTests.cs (5)
335
ImmutableArray<
UrlSnapshot
> initialUrlSnapshot = default;
371
ImmutableArray<
UrlSnapshot
> initialUrlSnapshot = default;
471
var
url = Assert.Single(urls);
511
var
url = Assert.Single(urls);
580
ImmutableArray<
UrlSnapshot
> urlSnapshot = default;