19 writes to IsProxied
Aspire.Hosting (2)
ApplicationModel\EndpointAnnotation.cs (1)
53IsProxied = isProxied;
Dcp\DcpExecutor.cs (1)
777endpoint.IsProxied = false;
Aspire.Hosting.Tests (15)
DistributedApplicationTests.cs (7)
1008endpoint.IsProxied = false; 1027endpoint.IsProxied = false; 1050e.IsProxied = false; 1086e.IsProxied = false; 1154endpoint.IsProxied = false; 1160endpoint.IsProxied = false; 1259endpoint.IsProxied = false;
ProjectResourceTests.cs (2)
614e.IsProxied = isProxied; 620e.IsProxied = isProxied;
WithEndpointTests.cs (6)
43endpoint.IsProxied = false; 53endpoint.IsProxied = true; 57endpoint.IsProxied = false; 78endpoint.IsProxied = false; 88endpoint.IsProxied = true; 92endpoint.IsProxied = false;
ProxylessEndToEnd.AppHost (2)
Program.cs (2)
8endpoint.IsProxied = false; 14e.IsProxied = false;
19 references to IsProxied
Aspire.Hosting (11)
ApplicationModel\EndpointAnnotation.cs (2)
78get => _port ?? (IsProxied || _portSetToNull ? null : _targetPort); 95get => _targetPort ?? (IsProxied || _targetPortSetToNull ? null : _port);
Dcp\DcpExecutor.cs (8)
734if (!svc.HasCompleteAddress && sp.EndpointAnnotation.IsProxied) 740if (!sp.EndpointAnnotation.IsProxied && svc.AllocatedPort is null) 780var port = _options.Value.RandomizePorts && endpoint.IsProxied ? null : endpoint.Port; 788svc.Spec.AddressAllocationMode = endpoint.IsProxied ? AddressAllocationModes.Localhost : AddressAllocationModes.Proxyless; 1394else if (!ea.IsProxied) 1408Debug.Assert(ea.IsProxied); 1413$"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."); 1773if (!ea.IsProxied && ea.Port is int)
ProjectResourceBuilderExtensions.cs (1)
763var targetHost = e.EndpointAnnotation.IsProxied && builder.Resource.SupportsProxy() ? "localhost" : e.EndpointAnnotation.TargetHost;
Aspire.Hosting.Azure.Tests (7)
AzureFunctionsTests.cs (7)
53Assert.False(endpointAnnotation.IsProxied); 81Assert.True(endpointAnnotation.IsProxied); 104Assert.False(endpointAnnotation.IsProxied); 118Assert.True(endpointAnnotation.IsProxied); 132Assert.True(endpointAnnotation.IsProxied); 216Assert.False(endpointAnnotation.IsProxied); 260Assert.True(endpointAnnotation.IsProxied);
Aspire.Hosting.Tests (1)
WithEndpointTests.cs (1)
615Assert.True(endpoint.IsProxied);