5 writes to RandomizePorts
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
394options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (4)
1274RandomizePorts = true, 1315var dcpOptions = new DcpOptions { DashboardPath = "./dashboard", RandomizePorts = true }; 1836RandomizePorts = true, 4105RandomizePorts = true,
10 references to RandomizePorts
Aspire.Hosting (10)
Dashboard\DashboardEventHandlers.cs (1)
229if (!dcpOptions.Value.RandomizePorts)
Dashboard\DashboardServiceHost.cs (1)
140var randomizePorts = dcpOptions.Value.RandomizePorts;
Dcp\DcpExecutor.cs (6)
635_logger.LogDebug("Preparing services. Ports randomized: {RandomizePorts}", _options.Value.RandomizePorts); 647endpoint.SetResolvedIsProxied(GetEffectiveIsProxied(sp.ModelResource, endpoint, _options.Value.RandomizePorts)); 650if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.RandomizePorts, out var fixedPublicPort)) 687if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.RandomizePorts, out var fixedPublicPort)) 854if (resource.HasPersistentLifetime() && !_options.Value.RandomizePorts) 882if (_options.Value.RandomizePorts ||
Dcp\DcpOptions.cs (2)
394options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);