17 writes to EnableAspireContainerTunnel
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
349
options.
EnableAspireContainerTunnel
= configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
Aspire.Hosting.Tests (16)
Dcp\DcpExecutorTests.cs (13)
425
EnableAspireContainerTunnel
= true,
465
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
487
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
509
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
533
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= false });
8853
EnableAspireContainerTunnel
= useTunnel,
8944
EnableAspireContainerTunnel
= true,
8984
EnableAspireContainerTunnel
= true,
9026
EnableAspireContainerTunnel
= true,
9102
EnableAspireContainerTunnel
= true,
9377
EnableAspireContainerTunnel
= true,
9428
EnableAspireContainerTunnel
= true,
9497
EnableAspireContainerTunnel
= true,
ExpressionResolverTests.cs (3)
179
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= withTunnel }));
216
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= true }));
241
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= withTunnel }));
14 references to EnableAspireContainerTunnel
Aspire.Hosting (14)
ApplicationModel\HostUrl.cs (2)
60
if (options.Value.
EnableAspireContainerTunnel
&& model is { })
115
replacementHost = options.Value.
EnableAspireContainerTunnel
? KnownHostNames.DefaultContainerTunnelHostName : dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge;
Dcp\ContainerCreator.cs (6)
100
if (_options.Value.
EnableAspireContainerTunnel
)
221
if (!_options.Value.
EnableAspireContainerTunnel
)
420
var useTunnel = _options.Value.
EnableAspireContainerTunnel
;
481
Debug.Assert(_options.Value.
EnableAspireContainerTunnel
, "This method should only be called if the container tunnel feature is enabled.");
502
if (!_options.Value.
EnableAspireContainerTunnel
)
681
Debug.Assert(_options.Value.
EnableAspireContainerTunnel
, "This method should only be called if the container tunnel feature is enabled.");
Dcp\DcpExecutor.cs (5)
137
(_options.Value.
EnableAspireContainerTunnel
? KnownHostNames.DefaultContainerTunnelHostName : _dcpInfo?.Containers?.HostName ?? KnownHostNames.DockerDesktopHostBridge);
218
_options.Value.
EnableAspireContainerTunnel
,
229
_options.Value.
EnableAspireContainerTunnel
,
512
if (_options.Value.
EnableAspireContainerTunnel
)
731
if (_options.Value.
EnableAspireContainerTunnel
)
Dcp\DcpOptions.cs (1)
349
options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.
EnableAspireContainerTunnel
);