41 references to Exists
Aspire.Hosting (20)
ApplicationModel\EndpointReference.cs (2)
121public bool TlsEnabled => Exists && EndpointAnnotation.TlsEnabled; 139public bool ExcludeReferenceEndpoint => Exists && EndpointAnnotation.ExcludeReferenceEndpoint;
ApplicationModel\McpServerEndpointAnnotation.cs (1)
43if (!endpoint.Exists)
Backchannel\DashboardUrlsHelper.cs (2)
95var apiEndpoint = httpsEndpoint.Exists ? httpsEndpoint : httpEndpoint; 96if (apiEndpoint.Exists)
Dashboard\DashboardEventHandlers.cs (7)
368var endpoint = httpsEndpoint.Exists ? httpsEndpoint : httpEndpoint; 369return endpoint.Exists 424return endpoint.Exists 475if (otlpHttp.Exists) 691if (otlpGrpc.Exists) 697if (otlpHttp.Exists) 724if (publicEndpoint.Exists)
Dcp\ExecutableCreator.cs (1)
141!endpointReference.Exists ||
ExternalServiceBuilderExtensions.cs (1)
474if (!_endpoint.Exists)
McpServerResourceBuilderExtensions.cs (1)
84if (!endpoint.Exists)
OtlpConfigurationExtensions.cs (2)
313return (requiredProtocol, grpcEndpoint.Exists, httpEndpoint.Exists) switch
ResourceBuilderExtensions.cs (3)
2575if (endpoint.Exists) 2614if (endpoint.Exists) 3215if (!endpoint.Exists)
Aspire.Hosting.Blazor (3)
BlazorGatewayExtensions.cs (2)
839return endpoint.Exists ? endpoint : null; 915if (httpEndpoint.Exists)
BlazorHostedExtensions.cs (1)
277return endpoint.Exists ? endpoint : null;
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
471Assert.False(endpointRef.Exists); 497Assert.False(endpointRef.Exists); 517Assert.False(endpointRef.Exists);
Aspire.Hosting.JavaScript (5)
DenoHostingExtensions.cs (1)
1416if (!endpoint.Exists)
JavaScriptHostingExtensions.cs (4)
2025if (!targetEndpoint.Exists) 2226if (!targetEndpoint.Exists) 3125var hasHttpsEndpoint = endpoints.Any(e => e.Exists && e.IsHttps); 3126var hasHttpEndpoint = endpoints.Any(e => e.Exists && e.IsHttp);
Aspire.Hosting.Maui (4)
MauiOtlpExtensions.cs (4)
276if (httpEndpoint.Exists) 320if (!endpointReference.Exists || endpointReference.EndpointAnnotation.AllocatedEndpoint is not { } allocatedEndpoint) 358if (!endpointReference.Exists || 448!endpointReference.Exists ||
Aspire.Hosting.Radius (1)
Publishing\RadiusInfrastructureBuilder.cs (1)
4350if (endpointReference.Exists)
Aspire.Hosting.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
100var dashboardEndpoint = httpsEndpoint.Exists ? httpsEndpoint : httpEndpoint; 101if (!dashboardEndpoint.Exists)
Aspire.Hosting.Tests (2)
EndpointReferenceTests.cs (2)
40Assert.False(endpoint.Exists); 44Assert.True(endpoint.Exists);
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpCluster.cs (1)
129.Where(e => e.Exists && !e.ExcludeReferenceEndpoint && (e.IsHttp || e.IsHttps))