4 writes to RandomizePorts
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
338options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);
Aspire.Hosting.Tests (3)
Dcp\DcpExecutorTests.cs (3)
874var dcpOptions = new DcpOptions { DashboardPath = "./dashboard", RandomizePorts = true }; 912var dcpOptions = new DcpOptions { DashboardPath = "./dashboard", RandomizePorts = true }; 3536var dcpOptions = new DcpOptions { DashboardPath = "./dashboard", RandomizePorts = true };
8 references to RandomizePorts
Aspire.Hosting (8)
Dashboard\DashboardEventHandlers.cs (1)
382if (!dcpOptions.Value.RandomizePorts)
Dashboard\DashboardServiceHost.cs (1)
138var randomizePorts = dcpOptions.Value.RandomizePorts;
Dcp\DcpExecutor.cs (4)
651_logger.LogDebug("Preparing services. Ports randomized: {RandomizePorts}", _options.Value.RandomizePorts); 663endpoint.SetResolvedIsProxied(GetEffectiveIsProxied(sp.ModelResource, endpoint, _options.Value.RandomizePorts)); 666if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.RandomizePorts, out var fixedPublicPort)) 696if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.RandomizePorts, out var fixedPublicPort))
Dcp\DcpOptions.cs (2)
338options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);