18 writes to IsProxied
Aspire.Hosting.Tests (16)
ContainerTunnelTests.cs (1)
61
e.
IsProxied
= false;
DistributedApplicationTests.cs (7)
1676
endpoint.
IsProxied
= false;
1693
endpoint.
IsProxied
= false;
1719
e.
IsProxied
= false;
1756
e.
IsProxied
= false;
1824
endpoint.
IsProxied
= false;
1830
endpoint.
IsProxied
= false;
1980
endpoint.
IsProxied
= false;
ProjectResourceTests.cs (2)
732
e.
IsProxied
= isProxied;
738
e.
IsProxied
= isProxied;
WithEndpointTests.cs (6)
208
endpoint.
IsProxied
= false;
218
endpoint.
IsProxied
= true;
222
endpoint.
IsProxied
= false;
243
endpoint.
IsProxied
= false;
253
endpoint.
IsProxied
= true;
257
endpoint.
IsProxied
= false;
ProxylessEndToEnd.AppHost (2)
AppHost.cs (2)
8
endpoint.
IsProxied
= false;
14
e.
IsProxied
= false;
29 references to IsProxied
Aspire.Hosting (12)
ApplicationModel\EndpointAnnotation.cs (2)
204
get => _port ?? (
IsProxied
|| _portSetToNull ? null : _targetPort);
226
get => _targetPort ?? (
IsProxied
|| _targetPortSetToNull ? null : _port);
Dcp\ContainerCreator.cs (1)
1032
if (!ea.
IsProxied
&& ea.SpecifiedPort is int hostPort)
Dcp\DcpExecutor.cs (3)
711
if (!endpoint.
IsProxied
)
786
if (randomizePorts && endpoint.
IsProxied
&& effectivePublicPort is not null)
842
!endpoint.
IsProxied
&&
Dcp\DcpModelUtilities.cs (6)
42
else if (!endpoint.
IsProxied
&& endpoint.Port is int && endpoint.Port != endpoint.TargetPort)
67
if (!ea.
IsProxied
)
76
Debug.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.");
172
if (!svc.HasCompleteAddress && sp.EndpointAnnotation.
IsProxied
)
184
if (!sp.EndpointAnnotation.
IsProxied
&& allocatedPort is null)
Aspire.Hosting.Azure.Tests (7)
AzureFunctionsTests.cs (7)
63
Assert.False(endpointAnnotation.
IsProxied
);
91
Assert.True(endpointAnnotation.
IsProxied
);
114
Assert.False(endpointAnnotation.
IsProxied
);
128
Assert.True(endpointAnnotation.
IsProxied
);
142
Assert.True(endpointAnnotation.
IsProxied
);
226
Assert.False(endpointAnnotation.
IsProxied
);
270
Assert.True(endpointAnnotation.
IsProxied
);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
52
Assert.True(httpEndpoints[0].
IsProxied
);
Aspire.Hosting.Tests (9)
WithEndpointTests.cs (9)
100
var isProxiedProperty = typeof(EndpointAnnotation).GetProperty(nameof(EndpointAnnotation.
IsProxied
), BindingFlags.Public | BindingFlags.Instance);
110
Assert.True(endpoint.
IsProxied
);
130
Assert.True(endpoint.
IsProxied
);
143
Assert.True(endpoint.
IsProxied
);
156
Assert.True(endpoint.
IsProxied
);
789
Assert.True(endpoint.
IsProxied
);
988
Assert.False(endpoint.
IsProxied
);
1061
Assert.True(endpoint.
IsProxied
);
1078
Assert.False(endpoint.
IsProxied
);