11 writes to Urls
Aspire.Hosting (7)
Dcp\ResourceSnapshotBuilder.cs (3)
65
Urls
= urls,
139
Urls
= urls,
161
Urls
= urls,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
62
Urls
= transformedUrls.ToImmutableArray()
ExternalServiceBuilderExtensions.cs (1)
150
Urls
= AddUrlIfNotPresent(snapshot.Urls, uri),
Orchestrator\ApplicationOrchestrator.cs (2)
133
await _notificationService.PublishUpdateAsync(resource, s => s with {
Urls
= [.. urls] }).ConfigureAwait(false);
457
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)
431
Urls
= [.. s.Urls.Select(u => u with { IsInactive = false })]
42 references to Urls
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (1)
626
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)
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)
334
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
336
initialUrlSnapshot = notification.Snapshot.
Urls
;
370
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
372
initialUrlSnapshot = notification.Snapshot.
Urls
;
431
Urls = [.. s.
Urls
.Select(u => u with { IsInactive = false })]
457
if (notification.Resource == servicea.Resource && notification.Snapshot.
Urls
.Length > 0)
461
var urls = notification.Snapshot.
Urls
;
469
else if (!projectEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
471
var urls = notification.Snapshot.
Urls
;
483
notification.Snapshot.
Urls
[^1].IsInactive == false &&
484
notification.Snapshot.
Urls
[^2].IsInactive == false)
486
var urls = notification.Snapshot.
Urls
;
497
else if (notification.Resource == custom.Resource && notification.Snapshot.
Urls
.Length > 0)
501
var urls = notification.Snapshot.
Urls
;
509
else if (!customEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
511
var urls = notification.Snapshot.
Urls
;
523
notification.Snapshot.
Urls
[^1].IsInactive == false &&
524
notification.Snapshot.
Urls
[^2].IsInactive == false)
526
var urls = notification.Snapshot.
Urls
;
580
if (notification.Snapshot.
Urls
.Length > 1 && urlSnapshot == default)
582
urlSnapshot = notification.Snapshot.
Urls
;