13 writes to Urls
Aspire.Hosting (7)
Dcp\ResourceSnapshotBuilder.cs (3)
65
Urls
= urls,
179
Urls
= urls,
201
Urls
= urls,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
62
Urls
= transformedUrls.ToImmutableArray()
ExternalServiceBuilderExtensions.cs (1)
150
Urls
= AddUrlIfNotPresent(snapshot.Urls, uri),
Orchestrator\ApplicationOrchestrator.cs (2)
144
await _notificationService.PublishUpdateAsync(resource, s => s with {
Urls
= [.. urls] }).ConfigureAwait(false);
549
Urls
= [.. urls],
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
103
Urls
= [.. portalUrls],
202
Urls
= [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
632
Urls
= [.. snapshot.Urls.Select(u => u with
689
Urls
= [.. snapshot.Urls.Select(u => u with { IsInactive = true /* All URLs inactive */ })]
Aspire.Hosting.Tests (2)
Codespaces\CodespacesUrlRewriterTests.cs (1)
75
Urls
= [localhostUrlSnapshot]
WithUrlsTests.cs (1)
530
Urls
= [.. s.Urls.Select(u => u with { IsInactive = false })]
46 references to Urls
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (1)
666
string.Join(" ", newState.
Urls
.Select(u => $"{u.Name} = {u.Url}")),
Dashboard\DashboardServiceData.cs (1)
50
Urls = snapshot.
Urls
,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (2)
32
foreach (var originalUrlSnapshot in resourceEvent.Snapshot.
Urls
)
57
var transformedUrls = from originalUrl in resourceEvent.Snapshot.
Urls
ExternalServiceBuilderExtensions.cs (1)
150
Urls = AddUrlIfNotPresent(snapshot.
Urls
, uri),
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
202
Urls = [.. state.
Urls
, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
632
Urls = [.. snapshot.
Urls
.Select(u => u with
689
Urls = [.. snapshot.
Urls
.Select(u => u with { IsInactive = true /* All URLs inactive */ })]
Aspire.Hosting.Tests (38)
Codespaces\CodespacesUrlRewriterTests.cs (3)
82
var match = re.Snapshot.
Urls
.Length > 0 && re.Snapshot.
Urls
[0].Url.Contains("app.github.dev");
88
resourceEvent.Snapshot.
Urls
,
DistributedApplicationTests.cs (12)
191
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
197
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
207
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
215
Assert.Collection(dependentResourceRunningEvent.Snapshot.
Urls
, u =>
262
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
267
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
281
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
288
Assert.Collection(dependentRunningResourceEvent.Snapshot.
Urls
, u =>
343
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
348
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
364
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
371
Assert.Collection(dependentRunningResourceEvent.Snapshot.
Urls
, u =>
WithUrlsTests.cs (23)
387
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
389
initialUrlSnapshot = notification.Snapshot.
Urls
;
423
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
425
initialUrlSnapshot = notification.Snapshot.
Urls
;
470
Assert.Equal(2, notification.Snapshot.
Urls
.Length);
471
Assert.Collection(notification.Snapshot.
Urls
,
530
Urls = [.. s.
Urls
.Select(u => u with { IsInactive = false })]
556
if (notification.Resource == servicea.Resource && notification.Snapshot.
Urls
.Length > 0)
560
var urls = notification.Snapshot.
Urls
;
568
else if (!projectEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
570
var urls = notification.Snapshot.
Urls
;
582
notification.Snapshot.
Urls
[^1].IsInactive == false &&
583
notification.Snapshot.
Urls
[^2].IsInactive == false)
585
var urls = notification.Snapshot.
Urls
;
596
else if (notification.Resource == custom.Resource && notification.Snapshot.
Urls
.Length > 0)
600
var urls = notification.Snapshot.
Urls
;
608
else if (!customEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
610
var urls = notification.Snapshot.
Urls
;
622
notification.Snapshot.
Urls
[^1].IsInactive == false &&
623
notification.Snapshot.
Urls
[^2].IsInactive == false)
625
var urls = notification.Snapshot.
Urls
;
679
if (notification.Snapshot.
Urls
.Length > 1 && urlSnapshot == default)
681
urlSnapshot = notification.Snapshot.
Urls
;