5 writes to RandomizePorts
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
340
options.
RandomizePorts
= dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (4)
922
RandomizePorts
= true,
963
var dcpOptions = new DcpOptions { DashboardPath = "./dashboard",
RandomizePorts
= true };
1484
RandomizePorts
= true,
3640
RandomizePorts
= true,
10 references to RandomizePorts
Aspire.Hosting (10)
Dashboard\DashboardEventHandlers.cs (1)
382
if (!dcpOptions.Value.
RandomizePorts
)
Dashboard\DashboardServiceHost.cs (1)
138
var randomizePorts = dcpOptions.Value.
RandomizePorts
;
Dcp\DcpExecutor.cs (6)
652
_logger.LogDebug("Preparing services. Ports randomized: {RandomizePorts}", _options.Value.
RandomizePorts
);
664
endpoint.SetResolvedIsProxied(GetEffectiveIsProxied(sp.ModelResource, endpoint, _options.Value.
RandomizePorts
));
667
if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.
RandomizePorts
, out var fixedPublicPort))
704
if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.
RandomizePorts
, out var fixedPublicPort))
871
if (resource.HasPersistentLifetime() && !_options.Value.
RandomizePorts
)
899
if (_options.Value.
RandomizePorts
||
Dcp\DcpOptions.cs (2)
340
options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.
RandomizePorts
), options.
RandomizePorts
);