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