28 writes to EnableAspireContainerTunnel
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
411options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
Aspire.Hosting.Tests (27)
Dcp\DcpExecutorTests.cs (24)
820EnableAspireContainerTunnel = true, 860dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 882dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 904dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 928dcpOptions: new DcpOptions { EnableAspireContainerTunnel = false }); 10315EnableAspireContainerTunnel = useTunnel, 10409EnableAspireContainerTunnel = true, 10451EnableAspireContainerTunnel = true, 10493EnableAspireContainerTunnel = true, 10569EnableAspireContainerTunnel = true, 10844EnableAspireContainerTunnel = true, 10871EnableAspireContainerTunnel = true, 10905EnableAspireContainerTunnel = true, 10956EnableAspireContainerTunnel = true, 10993EnableAspireContainerTunnel = true, 11032EnableAspireContainerTunnel = true, 11071EnableAspireContainerTunnel = true, 11139EnableAspireContainerTunnel = true, 11193EnableAspireContainerTunnel = true, 11235EnableAspireContainerTunnel = true, 11292EnableAspireContainerTunnel = true, 11342EnableAspireContainerTunnel = true, 11401EnableAspireContainerTunnel = true, 11470EnableAspireContainerTunnel = true,
ExpressionResolverTests.cs (3)
185testServiceProvider.AddService(Options.Create(new DcpOptions() { EnableAspireContainerTunnel = withTunnel })); 222testServiceProvider.AddService(Options.Create(new DcpOptions() { EnableAspireContainerTunnel = true })); 247testServiceProvider.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)
123(_options.Value.EnableAspireContainerTunnel ? KnownHostNames.DefaultContainerTunnelHostName : _dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge); 221_options.Value.EnableAspireContainerTunnel, 232_options.Value.EnableAspireContainerTunnel, 490if (_options.Value.EnableAspireContainerTunnel) 723if (_options.Value.EnableAspireContainerTunnel)
Dcp\DcpOptions.cs (1)
411options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);