7 writes to RandomizePorts
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
399options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);
Aspire.Hosting.Tests (6)
Dcp\DcpExecutorTests.cs (6)
1387RandomizePorts = true, 1428var dcpOptions = new DcpOptions { DashboardPath = "./dashboard", RandomizePorts = true }; 2242RandomizePorts = true, 2289RandomizePorts = true, 2336RandomizePorts = true, 4661RandomizePorts = true,
11 references to RandomizePorts
Aspire.Hosting (11)
Dashboard\DashboardEventHandlers.cs (1)
229if (!dcpOptions.Value.RandomizePorts)
Dashboard\DashboardServiceHost.cs (1)
140var randomizePorts = dcpOptions.Value.RandomizePorts;
Dcp\DcpExecutor.cs (3)
666_logger.LogDebug("Preparing services. Ports randomized: {RandomizePorts}", _options.Value.RandomizePorts); 678endpoint.SetResolvedIsProxied(GetEffectiveIsProxied(sp.ModelResource, endpoint, _options.Value.RandomizePorts)); 701if (DcpModelUtilities.TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.RandomizePorts, out var fixedPublicPort))
Dcp\DcpOptions.cs (2)
399options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);
Dcp\PersistentPortAllocator.cs (4)
41public bool PersistenceEnabled => _store.IsAvailable && (!_options.RandomizePorts || _options.PersistPortsInIsolatedMode); 128if (DcpModelUtilities.TryGetEffectiveFixedPublicPort(resource, endpoint, _options.RandomizePorts, out var fixedPublicPort)) 140if (DcpModelUtilities.NeedsGeneratedPublicPort(resource, endpoint, _options.RandomizePorts)) 171allowInUse: activePort.AllowInUse && !_options.RandomizePorts))