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