1 write to Endpoint
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
907
Endpoint
= endpoint,
34 references to Endpoint
Aspire.Hosting (1)
Publishing\ManifestPublishingContext.cs (1)
498
var endpoint = resolved.
Endpoint
;
Aspire.Hosting.Azure.AppContainers (10)
ContainerAppContext.cs (10)
145
var unsupportedEndpoints = resolvedEndpoints.Where(r => r.
Endpoint
.Transport is not ("http" or "http2" or "tcp")).ToArray();
149
throw new NotSupportedException($"The endpoint(s) {string.Join(", ", unsupportedEndpoints.Select(r => $"'{r.
Endpoint
.Name}'"))} specify an unsupported transport. The supported transports are 'http', 'http2', and 'tcp'.");
160
External = g.Any(x => x.resolved.
Endpoint
.IsExternal),
161
IsHttpOnly = g.All(x => x.resolved.
Endpoint
.Transport is "http" or "http2"),
162
AnyH2 = g.Any(x => x.resolved.
Endpoint
.Transport is "http2"),
163
UniqueTransports = g.Select(x => x.resolved.
Endpoint
.Transport).Distinct().ToArray(),
223
var endpoint = resolved.
Endpoint
;
238
.Where(r => r.
Endpoint
.UriScheme is "http")
239
.Select(r => r.
Endpoint
.Name)
262
var endpoint = resolved.
Endpoint
;
Aspire.Hosting.Azure.AppService (6)
AzureAppServiceWebsiteContext.cs (6)
104
var unsupportedEndpoints = resolvedEndpoints.Where(r => r.
Endpoint
.UriScheme is not ("http" or "https")).ToArray();
107
throw new NotSupportedException($"The endpoint(s) {string.Join(", ", unsupportedEndpoints.Select(r => $"'{r.
Endpoint
.Name}'"))} on resource '{resource.Name}' specifies an unsupported scheme. Only http and https are supported in App Service.");
112
.Where(r => r.
Endpoint
.IsExternal)
126
var endpoint = resolved.
Endpoint
;
153
.Where(r => r.
Endpoint
.UriScheme is "http")
154
.Select(r => r.
Endpoint
.Name)
Aspire.Hosting.Azure.Sandboxes (13)
AzureSandboxContainerDeployment.cs (12)
1486
if (!resolvedEndpoint.
Endpoint
.IsExternal)
1492
string.Equals(resolvedEndpoint.
Endpoint
.UriScheme, Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) &&
1494
string.Equals(candidate.
Endpoint
.UriScheme, Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) &&
1498
$"Endpoint '{resolvedEndpoint.
Endpoint
.Name}' on project resource '{resource.TargetResource.Name}' is exposed through Azure sandbox ingress, which terminates TLS and forwards plaintext HTTP. " +
1506
throw new InvalidOperationException($"Endpoint '{resolvedEndpoint.
Endpoint
.Name}' on resource '{resource.TargetResource.Name}' does not have a target port. Configure a target port before deploying it to an Azure sandbox.");
1509
var protocol = ResolveSandboxPortProtocol(resource.TargetResource, resolvedEndpoint.
Endpoint
);
1511
endpointOptions?.TryGetValue(resolvedEndpoint.
Endpoint
.Name, out resolvedEndpointOptions);
1512
unmatchedEndpointOptions?.Remove(resolvedEndpoint.
Endpoint
.Name);
1514
resolvedEndpoint.
Endpoint
.Name,
1525
throw new NotSupportedException($"Endpoint '{resolvedEndpoint.
Endpoint
.Name}' on resource '{resource.TargetResource.Name}' shares target port {resolvedTargetPort} with endpoint '{existingEndpoint.Name}' but uses a different transport. Azure sandbox ports support a single HTTP protocol per target port.");
1532
throw new NotSupportedException($"Endpoint '{resolvedEndpoint.
Endpoint
.Name}' on resource '{resource.TargetResource.Name}' shares target port {resolvedTargetPort} with endpoint '{existingEndpoint.Name}' but configures a different anonymous-access policy. Azure sandbox ports support a single access policy per target port.");
1571
return resource is ProjectResource && endpoint.
Endpoint
.Transport is "http" or "http2"
AzureSandboxEndpointPropertyValueProvider.cs (1)
191
if (string.Equals(resolvedEndpoint.
Endpoint
.Name, endpointName, StringComparison.Ordinal))
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
45
var endpoint = resolved.
Endpoint
;
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
237
var endpoint = resolved.
Endpoint
;
Aspire.Hosting.Radius (2)
Publishing\RadiusServiceDiscovery.cs (2)
94
.FirstOrDefault(r => string.Equals(r.
Endpoint
.Name, endpointName, StringComparison.OrdinalIgnoreCase));
121
ReferenceEquals(resolved.
Endpoint
, launchDefaults.DefaultHttpsEndpoint))