20 writes to IsProxied
Aspire.Hosting.Azure.Tests (2)
AzureFunctionsTests.cs (2)
418e.IsProxied = false; 445e.IsProxied = false;
Aspire.Hosting.Tests (16)
ContainerTunnelTests.cs (1)
91e.IsProxied = false;
DistributedApplicationTests.cs (7)
1742endpoint.IsProxied = false; 1759endpoint.IsProxied = false; 1785e.IsProxied = false; 1822e.IsProxied = false; 1890endpoint.IsProxied = false; 1896endpoint.IsProxied = false; 2050endpoint.IsProxied = false;
ProjectResourceTests.cs (2)
738e.IsProxied = isProxied; 744e.IsProxied = isProxied;
WithEndpointTests.cs (6)
874endpoint.IsProxied = false; 884endpoint.IsProxied = true; 888endpoint.IsProxied = false; 909endpoint.IsProxied = false; 919endpoint.IsProxied = true; 923endpoint.IsProxied = false;
ProxylessEndToEnd.AppHost (2)
AppHost.cs (2)
8endpoint.IsProxied = false; 14e.IsProxied = false;
31 references to IsProxied
Aspire.Hosting (13)
ApplicationModel\EndpointAnnotation.cs (2)
204get => _port ?? (IsProxied || _portSetToNull ? null : _targetPort); 226get => _targetPort ?? (IsProxied || _targetPortSetToNull ? null : _port);
Dcp\ContainerCreator.cs (1)
716if (!ea.IsProxied && ea.SpecifiedPort is int hostPort)
Dcp\DcpExecutor.cs (4)
702if (!endpoint.IsProxied) 776if (!endpoint.IsProxied || 820if (randomizePorts && endpoint.IsProxied && effectivePublicPort is not null) 876!endpoint.IsProxied &&
Dcp\DcpModelUtilities.cs (6)
42else if (!endpoint.IsProxied && endpoint.Port is int && endpoint.Port != endpoint.TargetPort) 67if (!ea.IsProxied) 76Debug.Assert(ea.IsProxied); 81$"The endpoint '{ea.Name}' for resource '{modelResourceName}' requested a proxy ({nameof(ea.IsProxied)} is true). Non-container resources cannot be proxied when both {nameof(ea.TargetPort)} and {nameof(ea.Port)} are specified with the same value."); 177if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 189if (!sp.EndpointAnnotation.IsProxied && allocatedPort is null)
Aspire.Hosting.Azure.Tests (7)
AzureFunctionsTests.cs (7)
64Assert.False(endpointAnnotation.IsProxied); 92Assert.True(endpointAnnotation.IsProxied); 115Assert.False(endpointAnnotation.IsProxied); 129Assert.True(endpointAnnotation.IsProxied); 143Assert.True(endpointAnnotation.IsProxied); 227Assert.False(endpointAnnotation.IsProxied); 271Assert.True(endpointAnnotation.IsProxied);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
56Assert.True(httpEndpoints[0].IsProxied);
Aspire.Hosting.MongoDB.Tests (1)
SingleMemberReplicaSetTests.cs (1)
37Assert.True(endpoint.IsProxied);
Aspire.Hosting.Tests (9)
WithEndpointTests.cs (9)
107var isProxiedProperty = typeof(EndpointAnnotation).GetProperty(nameof(EndpointAnnotation.IsProxied), BindingFlags.Public | BindingFlags.Instance); 117Assert.True(endpoint.IsProxied); 137Assert.True(endpoint.IsProxied); 150Assert.True(endpoint.IsProxied); 163Assert.True(endpoint.IsProxied); 727Assert.False(endpoint.IsProxied); 800Assert.True(endpoint.IsProxied); 817Assert.False(endpoint.IsProxied); 1045Assert.True(endpoint.IsProxied);