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)
1317RandomizePorts = true, 1358var dcpOptions = new DcpOptions { DashboardPath = "./dashboard", RandomizePorts = true }; 2172RandomizePorts = true, 2219RandomizePorts = true, 2266RandomizePorts = true, 4591RandomizePorts = 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)
646_logger.LogDebug("Preparing services. Ports randomized: {RandomizePorts}", _options.Value.RandomizePorts); 658endpoint.SetResolvedIsProxied(GetEffectiveIsProxied(sp.ModelResource, endpoint, _options.Value.RandomizePorts)); 681if (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))