5 writes to RandomizePorts
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
340options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (4)
922RandomizePorts = true, 963var dcpOptions = new DcpOptions { DashboardPath = "./dashboard", RandomizePorts = true }; 1484RandomizePorts = true, 3640RandomizePorts = true,
10 references to RandomizePorts
Aspire.Hosting (10)
Dashboard\DashboardEventHandlers.cs (1)
382if (!dcpOptions.Value.RandomizePorts)
Dashboard\DashboardServiceHost.cs (1)
138var randomizePorts = dcpOptions.Value.RandomizePorts;
Dcp\DcpExecutor.cs (6)
652_logger.LogDebug("Preparing services. Ports randomized: {RandomizePorts}", _options.Value.RandomizePorts); 664endpoint.SetResolvedIsProxied(GetEffectiveIsProxied(sp.ModelResource, endpoint, _options.Value.RandomizePorts)); 667if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.RandomizePorts, out var fixedPublicPort)) 704if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.RandomizePorts, out var fixedPublicPort)) 871if (resource.HasPersistentLifetime() && !_options.Value.RandomizePorts) 899if (_options.Value.RandomizePorts ||
Dcp\DcpOptions.cs (2)
340options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);