17 writes to EnableAspireContainerTunnel
Aspire.Hosting (1)
Dcp\DcpOptions.cs (1)
351
options.
EnableAspireContainerTunnel
= configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
Aspire.Hosting.Tests (16)
Dcp\DcpExecutorTests.cs (13)
425
EnableAspireContainerTunnel
= true,
465
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
487
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
509
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= true });
533
dcpOptions: new DcpOptions {
EnableAspireContainerTunnel
= false });
8960
EnableAspireContainerTunnel
= useTunnel,
9051
EnableAspireContainerTunnel
= true,
9091
EnableAspireContainerTunnel
= true,
9133
EnableAspireContainerTunnel
= true,
9209
EnableAspireContainerTunnel
= true,
9484
EnableAspireContainerTunnel
= true,
9535
EnableAspireContainerTunnel
= true,
9604
EnableAspireContainerTunnel
= true,
ExpressionResolverTests.cs (3)
179
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= withTunnel }));
216
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= true }));
241
testServiceProvider.AddService(Options.Create(new DcpOptions() {
EnableAspireContainerTunnel
= withTunnel }));
14 references to EnableAspireContainerTunnel
Aspire.Hosting (14)
ApplicationModel\HostUrl.cs (2)
60
if (options.Value.
EnableAspireContainerTunnel
&& model is { })
115
replacementHost = options.Value.
EnableAspireContainerTunnel
? KnownHostNames.DefaultContainerTunnelHostName : dcpInfo?.Containers?.ContainerHostName ?? KnownHostNames.DockerDesktopHostBridge;
Dcp\ContainerCreator.cs (6)
100
if (_options.Value.
EnableAspireContainerTunnel
)
221
if (!_options.Value.
EnableAspireContainerTunnel
)
420
var useTunnel = _options.Value.
EnableAspireContainerTunnel
;
481
Debug.Assert(_options.Value.
EnableAspireContainerTunnel
, "This method should only be called if the container tunnel feature is enabled.");
502
if (!_options.Value.
EnableAspireContainerTunnel
)
681
Debug.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);
219
_options.Value.
EnableAspireContainerTunnel
,
230
_options.Value.
EnableAspireContainerTunnel
,
513
if (_options.Value.
EnableAspireContainerTunnel
)
739
if (_options.Value.
EnableAspireContainerTunnel
)
Dcp\DcpOptions.cs (1)
351
options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.
EnableAspireContainerTunnel
);