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