20 writes to IsProxied
Aspire.Hosting.Azure.Tests (2)
AzureFunctionsTests.cs (2)
410
e.
IsProxied
= false;
437
e.
IsProxied
= false;
Aspire.Hosting.Tests (16)
ContainerTunnelTests.cs (1)
91
e.
IsProxied
= false;
DistributedApplicationTests.cs (7)
1760
endpoint.
IsProxied
= false;
1777
endpoint.
IsProxied
= false;
1803
e.
IsProxied
= false;
1840
e.
IsProxied
= false;
1908
endpoint.
IsProxied
= false;
1914
endpoint.
IsProxied
= false;
2068
endpoint.
IsProxied
= false;
ProjectResourceTests.cs (2)
761
e.
IsProxied
= isProxied;
767
e.
IsProxied
= isProxied;
WithEndpointTests.cs (6)
874
endpoint.
IsProxied
= false;
884
endpoint.
IsProxied
= true;
888
endpoint.
IsProxied
= false;
909
endpoint.
IsProxied
= false;
919
endpoint.
IsProxied
= true;
923
endpoint.
IsProxied
= false;
ProxylessEndToEnd.AppHost (2)
AppHost.cs (2)
8
endpoint.
IsProxied
= false;
14
e.
IsProxied
= false;
34 references to IsProxied
Aspire.Hosting (16)
ApplicationModel\EndpointAnnotation.cs (2)
207
get => _port ?? (
IsProxied
|| _portSetToNull ? null : _targetPort);
229
get => _targetPort ?? (
IsProxied
|| _targetPortSetToNull ? null : _port);
Dcp\ContainerCreator.cs (1)
771
if (!ea.
IsProxied
&& ea.SpecifiedPort is int hostPort)
Dcp\DcpExecutor.cs (4)
705
else if (endpoint.
IsProxied
&& _persistentPortAllocator.PersistenceEnabled)
723
if (!endpoint.
IsProxied
)
797
if (!endpoint.
IsProxied
||
824
if (endpoint.
IsProxied
||
Dcp\DcpModelUtilities.cs (8)
42
else if (!endpoint.
IsProxied
&& endpoint.Port is int && endpoint.Port != endpoint.TargetPort)
62
if (randomizePorts && endpoint.
IsProxied
&& effectivePublicPort is not null)
87
return endpoint.
IsProxied
|| resource is IComputeResource || resource.IsContainer();
109
if (!ea.
IsProxied
)
118
Debug.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.");
219
if (!svc.HasCompleteAddress && sp.EndpointAnnotation.
IsProxied
)
231
if (!sp.EndpointAnnotation.
IsProxied
&& allocatedPort is null)
Dcp\PersistentPortAllocator.cs (1)
145
resource.HasPersistentLifetime() && !endpoint.
IsProxied
,
Aspire.Hosting.Azure.Tests (7)
AzureFunctionsTests.cs (7)
62
Assert.False(endpointAnnotation.
IsProxied
);
90
Assert.True(endpointAnnotation.
IsProxied
);
113
Assert.False(endpointAnnotation.
IsProxied
);
127
Assert.True(endpointAnnotation.
IsProxied
);
141
Assert.True(endpointAnnotation.
IsProxied
);
219
Assert.False(endpointAnnotation.
IsProxied
);
263
Assert.True(endpointAnnotation.
IsProxied
);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
56
Assert.True(httpEndpoints[0].
IsProxied
);
Aspire.Hosting.MongoDB.Tests (1)
SingleMemberReplicaSetTests.cs (1)
42
Assert.True(endpoint.
IsProxied
);
Aspire.Hosting.Tests (9)
WithEndpointTests.cs (9)
107
var isProxiedProperty = typeof(EndpointAnnotation).GetProperty(nameof(EndpointAnnotation.
IsProxied
), BindingFlags.Public | BindingFlags.Instance);
117
Assert.True(endpoint.
IsProxied
);
137
Assert.True(endpoint.
IsProxied
);
150
Assert.True(endpoint.
IsProxied
);
163
Assert.True(endpoint.
IsProxied
);
727
Assert.False(endpoint.
IsProxied
);
800
Assert.True(endpoint.
IsProxied
);
817
Assert.False(endpoint.
IsProxied
);
1045
Assert.True(endpoint.
IsProxied
);