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)
693Urls = [.. snapshot.Urls.Select(u => u with 750Urls = [.. snapshot.Urls.Select(u => u with { IsInactive = true /* All URLs inactive */ })]
Aspire.Hosting.Tests (3)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
99Urls = [
Codespaces\CodespacesUrlRewriterTests.cs (1)
76Urls = [localhostUrlSnapshot]
WithUrlsTests.cs (1)
574Urls = [.. 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)
530var 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)
693Urls = [.. snapshot.Urls.Select(u => u with 750Urls = [.. snapshot.Urls.Select(u => u with { IsInactive = true /* All URLs inactive */ })]
Aspire.Hosting.Tests (35)
Codespaces\CodespacesUrlRewriterTests.cs (3)
83var match = re.Snapshot.Urls.Length > 0 && re.Snapshot.Urls[0].Url.Contains("app.github.dev"); 89resourceEvent.Snapshot.Urls,
DistributedApplicationTests.cs (12)
198Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 204Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 214Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 222Assert.Collection(dependentResourceRunningEvent.Snapshot.Urls, u => 403Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 408Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 422Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 429Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u => 486Assert.Collection(notStartedResourceEvent.Snapshot.Urls, u => 491Assert.Collection(dependentResourceEvent.Snapshot.Urls, u => 507Assert.Collection(runningResourceEvent.Snapshot.Urls, u => 514Assert.Collection(dependentRunningResourceEvent.Snapshot.Urls, u =>
WithUrlsTests.cs (20)
388e => e.Snapshot.Urls.Length > 0, 393Assert.Single(resourceEvent.Snapshot.Urls, s => s.Name == httpEndpoint.EndpointName && s.IsInactive && s.Url == "https://example.com"); 415e => e.Snapshot.Urls.Length > 0, 420Assert.Collection(resourceEvent.Snapshot.Urls, 453Assert.Equal(2, resourceEvent.Snapshot.Urls.Length); 454Assert.Collection(resourceEvent.Snapshot.Urls, 482if (notification.Resource == servicea.Resource && notification.Snapshot.Urls.Length > 0) 484urlSnapshots.Add(notification.Snapshot.Urls.ToArray()); 485testOutputHelper.WriteLine($"Captured snapshot #{urlSnapshots.Count}: State={notification.Snapshot.State}, URLs: {FormatUrls(notification.Snapshot.Urls)}"); 489notification.Snapshot.Urls.All(u => !u.IsInactive)) 574Urls = [.. s.Urls.Select(u => u with { IsInactive = false })] 600if (notification.Resource == custom.Resource && notification.Snapshot.Urls.Length > 0) 602urlSnapshots.Add(notification.Snapshot.Urls.ToArray()); 603testOutputHelper.WriteLine($"Captured snapshot #{urlSnapshots.Count}: State={notification.Snapshot.State}, URLs: {FormatUrls(notification.Snapshot.Urls)}"); 607notification.Snapshot.Urls.All(u => !u.IsInactive)) 678e => e.Snapshot.State == KnownResourceStates.Running && e.Snapshot.Urls.Length > 1, 683Assert.Collection(resourceEvent.Snapshot.Urls, 981&& e.Snapshot.Urls.Length == resourceB.Resource.GetEndpoints().ToArray().Length + 1 982&& e.Snapshot.Urls.All(u => !u.IsInactive), 988var crossResourceUrl = resourceEvent.Snapshot.Urls.FirstOrDefault(u => u.DisplayProperties.DisplayName == "API Docs");