18 writes to IsProxied
Aspire.Hosting.Tests (16)
ContainerTunnelTests.cs (1)
61e.IsProxied = false;
DistributedApplicationTests.cs (7)
1676endpoint.IsProxied = false; 1693endpoint.IsProxied = false; 1719e.IsProxied = false; 1756e.IsProxied = false; 1824endpoint.IsProxied = false; 1830endpoint.IsProxied = false; 1980endpoint.IsProxied = false;
ProjectResourceTests.cs (2)
732e.IsProxied = isProxied; 738e.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;
29 references to IsProxied
Aspire.Hosting (12)
ApplicationModel\EndpointAnnotation.cs (2)
204get => _port ?? (IsProxied || _portSetToNull ? null : _targetPort); 226get => _targetPort ?? (IsProxied || _targetPortSetToNull ? null : _port);
Dcp\ContainerCreator.cs (1)
1032if (!ea.IsProxied && ea.SpecifiedPort is int hostPort)
Dcp\DcpExecutor.cs (3)
711if (!endpoint.IsProxied) 786if (randomizePorts && endpoint.IsProxied && effectivePublicPort is not null) 842!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."); 172if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 184if (!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)
52Assert.True(httpEndpoints[0].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);