29 writes to EnableAspireContainerTunnel
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
411options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
Aspire.Hosting.Tests (28)
Dcp\DcpExecutorTests.cs (25)
861EnableAspireContainerTunnel = true, 930dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 952dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 974dcpOptions: new DcpOptions { EnableAspireContainerTunnel = true }); 998dcpOptions: new DcpOptions { EnableAspireContainerTunnel = false }); 10777EnableAspireContainerTunnel = useTunnel, 11174dcpOptions: new DcpOptions { EnableAspireContainerTunnel = false }); 11227EnableAspireContainerTunnel = true, 11269EnableAspireContainerTunnel = true, 11311EnableAspireContainerTunnel = true, 11387EnableAspireContainerTunnel = true, 11891EnableAspireContainerTunnel = true, 11918EnableAspireContainerTunnel = true, 11952EnableAspireContainerTunnel = true, 12003EnableAspireContainerTunnel = true, 12040EnableAspireContainerTunnel = true, 12079EnableAspireContainerTunnel = true, 12118EnableAspireContainerTunnel = true, 12186EnableAspireContainerTunnel = true, 12240EnableAspireContainerTunnel = true, 12282EnableAspireContainerTunnel = true, 12339EnableAspireContainerTunnel = true, 12443EnableAspireContainerTunnel = true, 12502EnableAspireContainerTunnel = true, 12571EnableAspireContainerTunnel = 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 }));
16 references to EnableAspireContainerTunnel
Aspire.Hosting (16)
ApplicationModel\HostUrl.cs (2)
60if (options.Value.EnableAspireContainerTunnel && model is { }) 102replacementHost = options.Value.EnableAspireContainerTunnel ? KnownHostNames.DefaultContainerTunnelHostName : dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge;
Dcp\ContainerCreator.cs (1)
347if (_options.Value.EnableAspireContainerTunnel)
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, 510if (_options.Value.EnableAspireContainerTunnel) 743if (_options.Value.EnableAspireContainerTunnel)
Dcp\DcpOptions.cs (1)
411options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);