28 writes to EnableAspireContainerTunnel
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
405options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
Aspire.Hosting.Tests (27)
Dcp\DcpExecutorTests.cs (24)
777EnableAspireContainerTunnel = true, 817dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 839dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 861dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 885dcpOptions: new DcpOptions { EnableAspireContainerTunnel = false }); 9630EnableAspireContainerTunnel = useTunnel, 9721EnableAspireContainerTunnel = true, 9761EnableAspireContainerTunnel = true, 9803EnableAspireContainerTunnel = true, 9879EnableAspireContainerTunnel = true, 10154EnableAspireContainerTunnel = true, 10181EnableAspireContainerTunnel = true, 10215EnableAspireContainerTunnel = true, 10266EnableAspireContainerTunnel = true, 10303EnableAspireContainerTunnel = true, 10342EnableAspireContainerTunnel = true, 10381EnableAspireContainerTunnel = true, 10449EnableAspireContainerTunnel = true, 10503EnableAspireContainerTunnel = true, 10545EnableAspireContainerTunnel = true, 10602EnableAspireContainerTunnel = true, 10652EnableAspireContainerTunnel = true, 10711EnableAspireContainerTunnel = true, 10780EnableAspireContainerTunnel = true,
ExpressionResolverTests.cs (3)
179testServiceProvider.AddService(Options.Create(new DcpOptions() { EnableAspireContainerTunnel = withTunnel })); 216testServiceProvider.AddService(Options.Create(new DcpOptions() { EnableAspireContainerTunnel = true })); 241testServiceProvider.AddService(Options.Create(new DcpOptions() { EnableAspireContainerTunnel = withTunnel }));
15 references to EnableAspireContainerTunnel
Aspire.Hosting (15)
ApplicationModel\HostUrl.cs (2)
60if (options.Value.EnableAspireContainerTunnel && model is { }) 115replacementHost = options.Value.EnableAspireContainerTunnel ? KnownHostNames.DefaultContainerTunnelHostName : dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge;
Dcp\ContainerNetworkEndpointProvisioner.cs (7)
101return !_options.Value.EnableAspireContainerTunnel || endpoint.Protocol == ProtocolType.Tcp; 136if (!_options.Value.EnableAspireContainerTunnel) 170var useTunnel = _options.Value.EnableAspireContainerTunnel; 231if (!_options.Value.EnableAspireContainerTunnel) 412Debug.Assert(_options.Value.EnableAspireContainerTunnel, "This method should only be called if the container tunnel feature is enabled."); 491if (_options.Value.EnableAspireContainerTunnel) 504Debug.Assert(_options.Value.EnableAspireContainerTunnel, "This method should only be called if the container tunnel feature is enabled.");
Dcp\DcpExecutor.cs (5)
127(_options.Value.EnableAspireContainerTunnel ? KnownHostNames.DefaultContainerTunnelHostName : _dcpInfo?.Containers?.HostName ?? KnownHostNames.DockerDesktopHostBridge); 222_options.Value.EnableAspireContainerTunnel, 233_options.Value.EnableAspireContainerTunnel, 479if (_options.Value.EnableAspireContainerTunnel) 722if (_options.Value.EnableAspireContainerTunnel)
Dcp\DcpOptions.cs (1)
405options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);