32 references to Exists
Aspire.Hosting (18)
ApplicationModel\EndpointReference.cs (2)
88
public bool TlsEnabled =>
Exists
&& EndpointAnnotation.TlsEnabled;
106
public bool ExcludeReferenceEndpoint =>
Exists
&& EndpointAnnotation.ExcludeReferenceEndpoint;
ApplicationModel\McpServerEndpointAnnotation.cs (1)
43
if (!endpoint.
Exists
)
Backchannel\DashboardUrlsHelper.cs (2)
95
var apiEndpoint = httpsEndpoint.
Exists
? httpsEndpoint : httpEndpoint;
96
if (apiEndpoint.
Exists
)
Dashboard\DashboardEventHandlers.cs (7)
523
var endpoint = httpsEndpoint.
Exists
? httpsEndpoint : httpEndpoint;
524
return endpoint.
Exists
579
return endpoint.
Exists
628
if (otlpHttp.
Exists
)
820
if (otlpGrpc.
Exists
)
826
if (otlpHttp.
Exists
)
853
if (publicEndpoint.
Exists
)
ExternalServiceBuilderExtensions.cs (1)
474
if (!_endpoint.
Exists
)
McpServerResourceBuilderExtensions.cs (1)
84
if (!endpoint.
Exists
)
OtlpConfigurationExtensions.cs (2)
219
return (requiredProtocol, grpcEndpoint.
Exists
, httpEndpoint.
Exists
) switch
ResourceBuilderExtensions.cs (2)
2236
if (endpoint.
Exists
)
2824
if (!endpoint.
Exists
)
Aspire.Hosting.Blazor (3)
BlazorGatewayExtensions.cs (2)
684
return endpoint.
Exists
? endpoint : null;
760
if (httpEndpoint.
Exists
)
BlazorHostedExtensions.cs (1)
187
return endpoint.
Exists
? endpoint : null;
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
340
Assert.False(endpointRef.
Exists
);
362
Assert.False(endpointRef.
Exists
);
380
Assert.False(endpointRef.
Exists
);
Aspire.Hosting.JavaScript (4)
JavaScriptHostingExtensions.cs (4)
1491
if (!targetEndpoint.
Exists
)
1689
if (!targetEndpoint.
Exists
)
2420
var hasHttpsEndpoint = endpoints.Any(e => e.
Exists
&& e.IsHttps);
2421
var hasHttpEndpoint = endpoints.Any(e => e.
Exists
&& e.IsHttp);
Aspire.Hosting.Maui (1)
MauiOtlpExtensions.cs (1)
212
if (!endpointReference.
Exists
|| endpointReference.EndpointAnnotation.AllocatedEndpoint is not { } allocatedEndpoint)
Aspire.Hosting.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
100
var dashboardEndpoint = httpsEndpoint.
Exists
? httpsEndpoint : httpEndpoint;
101
if (!dashboardEndpoint.
Exists
)
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpCluster.cs (1)
129
.Where(e => e.
Exists
&& !e.ExcludeReferenceEndpoint && (e.IsHttp || e.IsHttps))