11 writes to Urls
Aspire.Hosting (7)
Dcp\ResourceSnapshotBuilder.cs (3)
65Urls = urls, 139Urls = urls, 161Urls = urls,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
62Urls = transformedUrls.ToImmutableArray()
ExternalServiceBuilderExtensions.cs (1)
150Urls = AddUrlIfNotPresent(snapshot.Urls, uri),
Orchestrator\ApplicationOrchestrator.cs (2)
133await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 457Urls = [.. urls],
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
93Urls = [.. portalUrls], 185Urls = [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (2)
Codespaces\CodespacesUrlRewriterTests.cs (1)
77Urls = [localhostUrlSnapshot]
WithUrlsTests.cs (1)
431Urls = [.. s.Urls.Select(u => u with { IsInactive = false })]
42 references to Urls
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (1)
626string.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)
185Urls = [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.Tests (36)
Codespaces\CodespacesUrlRewriterTests.cs (3)
84var match = re.Snapshot.Urls.Length > 0 && re.Snapshot.Urls[0].Url.Contains("app.github.dev"); 90resourceEvent.Snapshot.Urls,
DistributedApplicationTests.cs (12)
185Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 191Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 201Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 209Assert.Collection(dependentResourceRunningEvent.Snapshot.Urls, u => 256Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 261Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 275Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 282Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u => 337Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 342Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 358Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 365Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u =>
WithUrlsTests.cs (21)
334if (notification.Snapshot.Urls.Length > 0 && initialUrlSnapshot == default) 336initialUrlSnapshot = notification.Snapshot.Urls; 370if (notification.Snapshot.Urls.Length > 0 && initialUrlSnapshot == default) 372initialUrlSnapshot = notification.Snapshot.Urls; 431Urls = [.. s.Urls.Select(u => u with { IsInactive = false })] 457if (notification.Resource == servicea.Resource && notification.Snapshot.Urls.Length > 0) 461var urls = notification.Snapshot.Urls; 469else if (!projectEndpointsAllocated && notification.Snapshot.Urls.Length == 2) 471var urls = notification.Snapshot.Urls; 483notification.Snapshot.Urls[^1].IsInactive == false && 484notification.Snapshot.Urls[^2].IsInactive == false) 486var urls = notification.Snapshot.Urls; 497else if (notification.Resource == custom.Resource && notification.Snapshot.Urls.Length > 0) 501var urls = notification.Snapshot.Urls; 509else if (!customEndpointsAllocated && notification.Snapshot.Urls.Length == 2) 511var urls = notification.Snapshot.Urls; 523notification.Snapshot.Urls[^1].IsInactive == false && 524notification.Snapshot.Urls[^2].IsInactive == false) 526var urls = notification.Snapshot.Urls; 580if (notification.Snapshot.Urls.Length > 1 && urlSnapshot == default) 582urlSnapshot = notification.Snapshot.Urls;