20 writes to IsProxied
Aspire.Hosting.Azure.Tests (2)
AzureFunctionsTests.cs (2)
410e.IsProxied = false; 437e.IsProxied = false;
Aspire.Hosting.Tests (16)
ContainerTunnelTests.cs (1)
91e.IsProxied = false;
DistributedApplicationTests.cs (7)
1760endpoint.IsProxied = false; 1777endpoint.IsProxied = false; 1803e.IsProxied = false; 1840e.IsProxied = false; 1908endpoint.IsProxied = false; 1914endpoint.IsProxied = false; 2068endpoint.IsProxied = false;
ProjectResourceTests.cs (2)
761e.IsProxied = isProxied; 767e.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;
34 references to IsProxied
Aspire.Hosting (16)
ApplicationModel\EndpointAnnotation.cs (2)
207get => _port ?? (IsProxied || _portSetToNull ? null : _targetPort); 229get => _targetPort ?? (IsProxied || _targetPortSetToNull ? null : _port);
Dcp\ContainerCreator.cs (1)
771if (!ea.IsProxied && ea.SpecifiedPort is int hostPort)
Dcp\DcpExecutor.cs (4)
705else if (endpoint.IsProxied && _persistentPortAllocator.PersistenceEnabled) 723if (!endpoint.IsProxied) 797if (!endpoint.IsProxied || 824if (endpoint.IsProxied ||
Dcp\DcpModelUtilities.cs (8)
42else if (!endpoint.IsProxied && endpoint.Port is int && endpoint.Port != endpoint.TargetPort) 62if (randomizePorts && endpoint.IsProxied && effectivePublicPort is not null) 87return endpoint.IsProxied || resource is IComputeResource || resource.IsContainer(); 109if (!ea.IsProxied) 118Debug.Assert(ea.IsProxied); 123$"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."); 219if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 231if (!sp.EndpointAnnotation.IsProxied && allocatedPort is null)
Dcp\PersistentPortAllocator.cs (1)
145resource.HasPersistentLifetime() && !endpoint.IsProxied,
Aspire.Hosting.Azure.Tests (7)
AzureFunctionsTests.cs (7)
62Assert.False(endpointAnnotation.IsProxied); 90Assert.True(endpointAnnotation.IsProxied); 113Assert.False(endpointAnnotation.IsProxied); 127Assert.True(endpointAnnotation.IsProxied); 141Assert.True(endpointAnnotation.IsProxied); 219Assert.False(endpointAnnotation.IsProxied); 263Assert.True(endpointAnnotation.IsProxied);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
56Assert.True(httpEndpoints[0].IsProxied);
Aspire.Hosting.MongoDB.Tests (1)
SingleMemberReplicaSetTests.cs (1)
42Assert.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);