1 write to Endpoint
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
908
Endpoint
= endpoint,
34 references to Endpoint
Aspire.Hosting (1)
Publishing\ManifestPublishingContext.cs (1)
506
var endpoint = resolved.
Endpoint
;
Aspire.Hosting.Azure.AppContainers (10)
ContainerAppContext.cs (10)
155
var unsupportedEndpoints = resolvedEndpoints.Where(r => r.
Endpoint
.Transport is not ("http" or "http2" or "tcp")).ToArray();
159
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'.");
170
External = g.Any(x => x.resolved.
Endpoint
.IsExternal),
171
IsHttpOnly = g.All(x => x.resolved.
Endpoint
.Transport is "http" or "http2"),
172
AnyH2 = g.Any(x => x.resolved.
Endpoint
.Transport is "http2"),
173
UniqueTransports = g.Select(x => x.resolved.
Endpoint
.Transport).Distinct().ToArray(),
233
var endpoint = resolved.
Endpoint
;
249
.Where(r => r.
Endpoint
.UriScheme is "http")
250
.Select(r => r.
Endpoint
.Name)
273
var endpoint = resolved.
Endpoint
;
Aspire.Hosting.Azure.AppService (6)
AzureAppServiceWebsiteContext.cs (6)
138
var unsupportedEndpoints = resolvedEndpoints.Where(r => r.
Endpoint
.UriScheme is not ("http" or "https")).ToArray();
141
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.");
146
.Where(r => r.
Endpoint
.IsExternal)
160
var endpoint = resolved.
Endpoint
;
187
.Where(r => r.
Endpoint
.UriScheme is "http")
188
.Select(r => r.
Endpoint
.Name)
Aspire.Hosting.Azure.Sandboxes (13)
AzureSandboxContainerDeployment.cs (12)
1484
if (!resolvedEndpoint.
Endpoint
.IsExternal)
1490
string.Equals(resolvedEndpoint.
Endpoint
.UriScheme, Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) &&
1492
string.Equals(candidate.
Endpoint
.UriScheme, Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) &&
1496
$"Endpoint '{resolvedEndpoint.
Endpoint
.Name}' on project resource '{resource.TargetResource.Name}' is exposed through Azure sandbox ingress, which terminates TLS and forwards plaintext HTTP. " +
1504
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.");
1507
var protocol = ResolveSandboxPortProtocol(resource.TargetResource, resolvedEndpoint.
Endpoint
);
1509
endpointOptions?.TryGetValue(resolvedEndpoint.
Endpoint
.Name, out resolvedEndpointOptions);
1510
unmatchedEndpointOptions?.Remove(resolvedEndpoint.
Endpoint
.Name);
1512
resolvedEndpoint.
Endpoint
.Name,
1523
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.");
1530
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.");
1569
return resource is IDotnetProgramResource && endpoint.
Endpoint
.Transport is "http" or "http2"
AzureSandboxEndpointPropertyValueProvider.cs (1)
188
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)
235
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))