17 writes to EnableAspireContainerTunnel
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
349options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
Aspire.Hosting.Tests (16)
Dcp\DcpExecutorTests.cs (13)
425EnableAspireContainerTunnel = true, 465dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 487dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 509dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 533dcpOptions: new DcpOptions { EnableAspireContainerTunnel = false }); 8853EnableAspireContainerTunnel = useTunnel, 8944EnableAspireContainerTunnel = true, 8984EnableAspireContainerTunnel = true, 9026EnableAspireContainerTunnel = true, 9102EnableAspireContainerTunnel = true, 9377EnableAspireContainerTunnel = true, 9428EnableAspireContainerTunnel = true, 9497EnableAspireContainerTunnel = 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 }));
14 references to EnableAspireContainerTunnel
Aspire.Hosting (14)
ApplicationModel\HostUrl.cs (2)
60if (options.Value.EnableAspireContainerTunnel && model is { }) 115replacementHost = options.Value.EnableAspireContainerTunnel ? KnownHostNames.DefaultContainerTunnelHostName : dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge;
Dcp\ContainerCreator.cs (6)
100if (_options.Value.EnableAspireContainerTunnel) 221if (!_options.Value.EnableAspireContainerTunnel) 420var useTunnel = _options.Value.EnableAspireContainerTunnel; 481Debug.Assert(_options.Value.EnableAspireContainerTunnel, "This method should only be called if the container tunnel feature is enabled."); 502if (!_options.Value.EnableAspireContainerTunnel) 681Debug.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, 512if (_options.Value.EnableAspireContainerTunnel) 731if (_options.Value.EnableAspireContainerTunnel)
Dcp\DcpOptions.cs (1)
349options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);