11 writes to Urls
Aspire.Hosting (7)
Dcp\ResourceSnapshotBuilder.cs (3)
65Urls = urls, 179Urls = urls, 201Urls = urls,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
62Urls = transformedUrls.ToImmutableArray()
ExternalServiceBuilderExtensions.cs (1)
150Urls = AddUrlIfNotPresent(snapshot.Urls, uri),
Orchestrator\ApplicationOrchestrator.cs (2)
131await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 426Urls = [.. urls],
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
94Urls = [.. portalUrls], 200Urls = [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (2)
Codespaces\CodespacesUrlRewriterTests.cs (1)
75Urls = [localhostUrlSnapshot]
WithUrlsTests.cs (1)
476Urls = [.. s.Urls.Select(u => u with { IsInactive = false })]
44 references to Urls
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (1)
650string.Join(" ", newState.Urls.Select(u => $"{u.Name} = {u.Url}")),
Dashboard\DashboardServiceData.cs (1)
50Urls = snapshot.Urls,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (2)
32foreach (var originalUrlSnapshot in resourceEvent.Snapshot.Urls) 57var transformedUrls = from originalUrl in resourceEvent.Snapshot.Urls
ExternalServiceBuilderExtensions.cs (1)
150Urls = AddUrlIfNotPresent(snapshot.Urls, uri),
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
200Urls = [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (38)
Codespaces\CodespacesUrlRewriterTests.cs (3)
82var match = re.Snapshot.Urls.Length > 0 && re.Snapshot.Urls[0].Url.Contains("app.github.dev"); 88resourceEvent.Snapshot.Urls,
DistributedApplicationTests.cs (12)
184Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 190Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 200Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 208Assert.Collection(dependentResourceRunningEvent.Snapshot.Urls, u => 255Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 260Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 274Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 281Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u => 336Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 341Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 357Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 364Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u =>
WithUrlsTests.cs (23)
333if (notification.Snapshot.Urls.Length > 0 && initialUrlSnapshot == default) 335initialUrlSnapshot = notification.Snapshot.Urls; 369if (notification.Snapshot.Urls.Length > 0 && initialUrlSnapshot == default) 371initialUrlSnapshot = notification.Snapshot.Urls; 416Assert.Equal(2, notification.Snapshot.Urls.Length); 417Assert.Collection(notification.Snapshot.Urls, 476Urls = [.. s.Urls.Select(u => u with { IsInactive = false })] 502if (notification.Resource == servicea.Resource && notification.Snapshot.Urls.Length > 0) 506var urls = notification.Snapshot.Urls; 514else if (!projectEndpointsAllocated && notification.Snapshot.Urls.Length == 2) 516var urls = notification.Snapshot.Urls; 528notification.Snapshot.Urls[^1].IsInactive == false && 529notification.Snapshot.Urls[^2].IsInactive == false) 531var urls = notification.Snapshot.Urls; 542else if (notification.Resource == custom.Resource && notification.Snapshot.Urls.Length > 0) 546var urls = notification.Snapshot.Urls; 554else if (!customEndpointsAllocated && notification.Snapshot.Urls.Length == 2) 556var urls = notification.Snapshot.Urls; 568notification.Snapshot.Urls[^1].IsInactive == false && 569notification.Snapshot.Urls[^2].IsInactive == false) 571var urls = notification.Snapshot.Urls; 625if (notification.Snapshot.Urls.Length > 1 && urlSnapshot == default) 627urlSnapshot = notification.Snapshot.Urls;