14 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)
147await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 639Urls = [.. urls],
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
107Urls = [.. portalUrls], 207Urls = [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
648Urls = [.. snapshot.Urls.Select(u => u with 705Urls = [.. snapshot.Urls.Select(u => u with { IsInactive = true /* All URLs inactive */ })]
Aspire.Hosting.Tests (3)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
97Urls = [
Codespaces\CodespacesUrlRewriterTests.cs (1)
75Urls = [localhostUrlSnapshot]
WithUrlsTests.cs (1)
573Urls = [.. s.Urls.Select(u => u with { IsInactive = false })]
44 references to Urls
Aspire.Hosting (6)
ApplicationModel\ResourceNotificationService.cs (1)
697string.Join(" ", newState.Urls.Select(u => $"{u.Name} = {u.Url}")),
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
440var urls = snapshot.Urls
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)
207Urls = [.. state.Urls, new(Name: "deployment", Url: url, IsInternal: false)],
Aspire.Hosting.DevTunnels (2)
DevTunnelResourceBuilderExtensions.cs (2)
648Urls = [.. snapshot.Urls.Select(u => u with 705Urls = [.. snapshot.Urls.Select(u => u with { IsInactive = true /* All URLs inactive */ })]
Aspire.Hosting.Tests (35)
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)
197Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 203Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 213Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 221Assert.Collection(dependentResourceRunningEvent.Snapshot.Urls, u => 402Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 407Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 421Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 428Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u => 485Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 490Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 506Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 513Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u =>
WithUrlsTests.cs (20)
387e => e.Snapshot.Urls.Length > 0, 392Assert.Single(resourceEvent.Snapshot.Urls, s => s.Name == httpEndpoint.EndpointName && s.IsInactive && s.Url == "https://example.com"); 414e => e.Snapshot.Urls.Length > 0, 419Assert.Collection(resourceEvent.Snapshot.Urls, 452Assert.Equal(2, resourceEvent.Snapshot.Urls.Length); 453Assert.Collection(resourceEvent.Snapshot.Urls, 481if (notification.Resource == servicea.Resource && notification.Snapshot.Urls.Length > 0) 483urlSnapshots.Add(notification.Snapshot.Urls.ToArray()); 484testOutputHelper.WriteLine($"Captured snapshot #{urlSnapshots.Count}: State={notification.Snapshot.State}, URLs: {FormatUrls(notification.Snapshot.Urls)}"); 488notification.Snapshot.Urls.All(u => !u.IsInactive)) 573Urls = [.. s.Urls.Select(u => u with { IsInactive = false })] 599if (notification.Resource == custom.Resource && notification.Snapshot.Urls.Length > 0) 601urlSnapshots.Add(notification.Snapshot.Urls.ToArray()); 602testOutputHelper.WriteLine($"Captured snapshot #{urlSnapshots.Count}: State={notification.Snapshot.State}, URLs: {FormatUrls(notification.Snapshot.Urls)}"); 606notification.Snapshot.Urls.All(u => !u.IsInactive)) 677e => e.Snapshot.State == KnownResourceStates.Running && e.Snapshot.Urls.Length > 1, 682Assert.Collection(resourceEvent.Snapshot.Urls, 980&& e.Snapshot.Urls.Length == resourceB.Resource.GetEndpoints().ToArray().Length + 1 981&& e.Snapshot.Urls.All(u => !u.IsInactive), 987var crossResourceUrl = resourceEvent.Snapshot.Urls.FirstOrDefault(u => u.DisplayProperties.DisplayName == "API Docs");