10 writes to Urls
Aspire.Hosting (6)
Dcp\ResourceSnapshotBuilder.cs (3)
65
Urls
= urls,
139
Urls
= urls,
161
Urls
= urls,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
62
Urls
= transformedUrls.ToImmutableArray()
Orchestrator\ApplicationOrchestrator.cs (2)
129
await _notificationService.PublishUpdateAsync(resource, s => s with {
Urls
= [.. urls] }).ConfigureAwait(false);
425
Urls
= [.. urls],
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
93
Urls
= [.. portalUrls],
185
Urls
= [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (2)
Codespaces\CodespacesUrlRewriterTests.cs (1)
77
Urls
= [localhostUrlSnapshot]
WithUrlsTests.cs (1)
439
Urls
= [.. s.Urls.Select(u => u with { IsInactive = false })]
41 references to Urls
Aspire.Hosting (4)
ApplicationModel\ResourceNotificationService.cs (1)
589
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
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
185
Urls = [.. state.
Urls
, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (36)
Codespaces\CodespacesUrlRewriterTests.cs (3)
84
var match = re.Snapshot.
Urls
.Length > 0 && re.Snapshot.
Urls
[0].Url.Contains("app.github.dev");
90
resourceEvent.Snapshot.
Urls
,
DistributedApplicationTests.cs (12)
185
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
191
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
201
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
209
Assert.Collection(dependentResourceRunningEvent.Snapshot.
Urls
, u =>
256
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
261
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
275
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
282
Assert.Collection(dependentRunningResourceEvent.Snapshot.
Urls
, u =>
337
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
342
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
358
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
365
Assert.Collection(dependentRunningResourceEvent.Snapshot.
Urls
, u =>
WithUrlsTests.cs (21)
341
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
343
initialUrlSnapshot = notification.Snapshot.
Urls
;
377
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
379
initialUrlSnapshot = notification.Snapshot.
Urls
;
439
Urls = [.. s.
Urls
.Select(u => u with { IsInactive = false })]
465
if (notification.Resource == servicea.Resource && notification.Snapshot.
Urls
.Length > 0)
469
var urls = notification.Snapshot.
Urls
;
477
else if (!projectEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
479
var urls = notification.Snapshot.
Urls
;
491
notification.Snapshot.
Urls
[^1].IsInactive == false &&
492
notification.Snapshot.
Urls
[^2].IsInactive == false)
494
var urls = notification.Snapshot.
Urls
;
505
else if (notification.Resource == custom.Resource && notification.Snapshot.
Urls
.Length > 0)
509
var urls = notification.Snapshot.
Urls
;
517
else if (!customEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
519
var urls = notification.Snapshot.
Urls
;
531
notification.Snapshot.
Urls
[^1].IsInactive == false &&
532
notification.Snapshot.
Urls
[^2].IsInactive == false)
534
var urls = notification.Snapshot.
Urls
;
588
if (notification.Snapshot.
Urls
.Length > 1 && urlSnapshot == default)
590
urlSnapshot = notification.Snapshot.
Urls
;