5 writes to RandomizePorts
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
394
options.
RandomizePorts
= dcpPublisherConfiguration.GetValue(nameof(options.RandomizePorts), options.RandomizePorts);
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (4)
1274
RandomizePorts
= true,
1315
var dcpOptions = new DcpOptions { DashboardPath = "./dashboard",
RandomizePorts
= true };
1836
RandomizePorts
= true,
4105
RandomizePorts
= true,
10 references to RandomizePorts
Aspire.Hosting (10)
Dashboard\DashboardEventHandlers.cs (1)
229
if (!dcpOptions.Value.
RandomizePorts
)
Dashboard\DashboardServiceHost.cs (1)
140
var randomizePorts = dcpOptions.Value.
RandomizePorts
;
Dcp\DcpExecutor.cs (6)
635
_logger.LogDebug("Preparing services. Ports randomized: {RandomizePorts}", _options.Value.
RandomizePorts
);
647
endpoint.SetResolvedIsProxied(GetEffectiveIsProxied(sp.ModelResource, endpoint, _options.Value.
RandomizePorts
));
650
if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.
RandomizePorts
, out var fixedPublicPort))
687
if (TryGetEffectiveFixedPublicPort(sp.ModelResource, endpoint, _options.Value.
RandomizePorts
, out var fixedPublicPort))
854
if (resource.HasPersistentLifetime() && !_options.Value.
RandomizePorts
)
882
if (_options.Value.
RandomizePorts
||
Dcp\DcpOptions.cs (2)
394
options.RandomizePorts = dcpPublisherConfiguration.GetValue(nameof(options.
RandomizePorts
), options.
RandomizePorts
);