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