29 writes to EnableAspireContainerTunnel
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
411
options.
EnableAspireContainerTunnel
= configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
Aspire.Hosting.Tests (28)
Dcp\DcpExecutorTests.cs (25)
861
EnableAspireContainerTunnel
= true,
930
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
952
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
974
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
998
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= false });
10777
EnableAspireContainerTunnel
= useTunnel,
11174
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= false });
11227
EnableAspireContainerTunnel
= true,
11269
EnableAspireContainerTunnel
= true,
11311
EnableAspireContainerTunnel
= true,
11387
EnableAspireContainerTunnel
= true,
11891
EnableAspireContainerTunnel
= true,
11918
EnableAspireContainerTunnel
= true,
11952
EnableAspireContainerTunnel
= true,
12003
EnableAspireContainerTunnel
= true,
12040
EnableAspireContainerTunnel
= true,
12079
EnableAspireContainerTunnel
= true,
12118
EnableAspireContainerTunnel
= true,
12186
EnableAspireContainerTunnel
= true,
12240
EnableAspireContainerTunnel
= true,
12282
EnableAspireContainerTunnel
= true,
12339
EnableAspireContainerTunnel
= true,
12443
EnableAspireContainerTunnel
= true,
12502
EnableAspireContainerTunnel
= true,
12571
EnableAspireContainerTunnel
= true,
ExpressionResolverTests.cs (3)
185
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= withTunnel }));
222
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= true }));
247
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= withTunnel }));
16 references to EnableAspireContainerTunnel
Aspire.Hosting (16)
ApplicationModel\HostUrl.cs (2)
60
if (options.Value.
EnableAspireContainerTunnel
&& model is { })
102
replacementHost = options.Value.
EnableAspireContainerTunnel
? KnownHostNames.DefaultContainerTunnelHostName : dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge;
Dcp\ContainerCreator.cs (1)
347
if (_options.Value.
EnableAspireContainerTunnel
)
Dcp\ContainerNetworkEndpointProvisioner.cs (7)
101
return !_options.Value.
EnableAspireContainerTunnel
|| endpoint.Protocol == ProtocolType.Tcp;
136
if (!_options.Value.
EnableAspireContainerTunnel
)
170
var useTunnel = _options.Value.
EnableAspireContainerTunnel
;
231
if (!_options.Value.
EnableAspireContainerTunnel
)
412
Debug.Assert(_options.Value.
EnableAspireContainerTunnel
, "This method should only be called if the container tunnel feature is enabled.");
491
if (_options.Value.
EnableAspireContainerTunnel
)
504
Debug.Assert(_options.Value.
EnableAspireContainerTunnel
, "This method should only be called if the container tunnel feature is enabled.");
Dcp\DcpExecutor.cs (5)
123
(_options.Value.
EnableAspireContainerTunnel
? KnownHostNames.DefaultContainerTunnelHostName : _dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge);
221
_options.Value.
EnableAspireContainerTunnel
,
232
_options.Value.
EnableAspireContainerTunnel
,
510
if (_options.Value.
EnableAspireContainerTunnel
)
743
if (_options.Value.
EnableAspireContainerTunnel
)
Dcp\DcpOptions.cs (1)
411
options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.
EnableAspireContainerTunnel
);