11 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)
131
await _notificationService.PublishUpdateAsync(resource, s => s with {
Urls
= [.. urls] }).ConfigureAwait(false);
426
Urls
= [.. urls],
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
94
Urls
= [.. portalUrls],
200
Urls
= [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (2)
Codespaces\CodespacesUrlRewriterTests.cs (1)
75
Urls
= [localhostUrlSnapshot]
WithUrlsTests.cs (1)
476
Urls
= [.. s.Urls.Select(u => u with { IsInactive = false })]
44 references to Urls
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (1)
650
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)
200
Urls = [.. state.
Urls
, new(Name: "deployment", Url: url, IsInternal: false)],
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)
184
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
190
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
200
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
208
Assert.Collection(dependentResourceRunningEvent.Snapshot.
Urls
, u =>
255
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
260
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
274
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
281
Assert.Collection(dependentRunningResourceEvent.Snapshot.
Urls
, u =>
336
Assert.Collection(notStartedResourceEvent.Snapshot.
Urls
, u =>
341
Assert.Collection(dependentResourceEvent.Snapshot.
Urls
, u =>
357
Assert.Collection(runningResourceEvent.Snapshot.
Urls
, u =>
364
Assert.Collection(dependentRunningResourceEvent.Snapshot.
Urls
, u =>
WithUrlsTests.cs (23)
333
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
335
initialUrlSnapshot = notification.Snapshot.
Urls
;
369
if (notification.Snapshot.
Urls
.Length > 0 && initialUrlSnapshot == default)
371
initialUrlSnapshot = notification.Snapshot.
Urls
;
416
Assert.Equal(2, notification.Snapshot.
Urls
.Length);
417
Assert.Collection(notification.Snapshot.
Urls
,
476
Urls = [.. s.
Urls
.Select(u => u with { IsInactive = false })]
502
if (notification.Resource == servicea.Resource && notification.Snapshot.
Urls
.Length > 0)
506
var urls = notification.Snapshot.
Urls
;
514
else if (!projectEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
516
var urls = notification.Snapshot.
Urls
;
528
notification.Snapshot.
Urls
[^1].IsInactive == false &&
529
notification.Snapshot.
Urls
[^2].IsInactive == false)
531
var urls = notification.Snapshot.
Urls
;
542
else if (notification.Resource == custom.Resource && notification.Snapshot.
Urls
.Length > 0)
546
var urls = notification.Snapshot.
Urls
;
554
else if (!customEndpointsAllocated && notification.Snapshot.
Urls
.Length == 2)
556
var urls = notification.Snapshot.
Urls
;
568
notification.Snapshot.
Urls
[^1].IsInactive == false &&
569
notification.Snapshot.
Urls
[^2].IsInactive == false)
571
var urls = notification.Snapshot.
Urls
;
625
if (notification.Snapshot.
Urls
.Length > 1 && urlSnapshot == default)
627
urlSnapshot = notification.Snapshot.
Urls
;