18 writes to IsProxied
Aspire.Hosting.Tests (16)
ContainerTunnelTests.cs (1)
65e.IsProxied = false;
DistributedApplicationTests.cs (7)
1687endpoint.IsProxied = false; 1704endpoint.IsProxied = false; 1730e.IsProxied = false; 1767e.IsProxied = false; 1835endpoint.IsProxied = false; 1841endpoint.IsProxied = false; 1991endpoint.IsProxied = false;
ProjectResourceTests.cs (2)
733e.IsProxied = isProxied; 739e.IsProxied = isProxied;
WithEndpointTests.cs (6)
208endpoint.IsProxied = false; 218endpoint.IsProxied = true; 222endpoint.IsProxied = false; 243endpoint.IsProxied = false; 253endpoint.IsProxied = true; 257endpoint.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)
63Assert.False(endpointAnnotation.IsProxied); 91Assert.True(endpointAnnotation.IsProxied); 114Assert.False(endpointAnnotation.IsProxied); 128Assert.True(endpointAnnotation.IsProxied); 142Assert.True(endpointAnnotation.IsProxied); 226Assert.False(endpointAnnotation.IsProxied); 270Assert.True(endpointAnnotation.IsProxied);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
53Assert.True(httpEndpoints[0].IsProxied);
Aspire.Hosting.MongoDB.Tests (1)
SingleMemberReplicaSetTests.cs (1)
37Assert.True(endpoint.IsProxied);
Aspire.Hosting.Tests (9)
WithEndpointTests.cs (9)
100var isProxiedProperty = typeof(EndpointAnnotation).GetProperty(nameof(EndpointAnnotation.IsProxied), BindingFlags.Public | BindingFlags.Instance); 110Assert.True(endpoint.IsProxied); 130Assert.True(endpoint.IsProxied); 143Assert.True(endpoint.IsProxied); 156Assert.True(endpoint.IsProxied); 789Assert.True(endpoint.IsProxied); 988Assert.False(endpoint.IsProxied); 1061Assert.True(endpoint.IsProxied); 1078Assert.False(endpoint.IsProxied);