1 write to Endpoint
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
908Endpoint = endpoint,
34 references to Endpoint
Aspire.Hosting (1)
Publishing\ManifestPublishingContext.cs (1)
506var endpoint = resolved.Endpoint;
Aspire.Hosting.Azure.AppContainers (10)
ContainerAppContext.cs (10)
155var unsupportedEndpoints = resolvedEndpoints.Where(r => r.Endpoint.Transport is not ("http" or "http2" or "tcp")).ToArray(); 159throw 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'."); 170External = g.Any(x => x.resolved.Endpoint.IsExternal), 171IsHttpOnly = g.All(x => x.resolved.Endpoint.Transport is "http" or "http2"), 172AnyH2 = g.Any(x => x.resolved.Endpoint.Transport is "http2"), 173UniqueTransports = g.Select(x => x.resolved.Endpoint.Transport).Distinct().ToArray(), 233var endpoint = resolved.Endpoint; 249.Where(r => r.Endpoint.UriScheme is "http") 250.Select(r => r.Endpoint.Name) 273var endpoint = resolved.Endpoint;
Aspire.Hosting.Azure.AppService (6)
AzureAppServiceWebsiteContext.cs (6)
138var unsupportedEndpoints = resolvedEndpoints.Where(r => r.Endpoint.UriScheme is not ("http" or "https")).ToArray(); 141throw 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) 160var 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)
1484if (!resolvedEndpoint.Endpoint.IsExternal) 1490string.Equals(resolvedEndpoint.Endpoint.UriScheme, Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) && 1492string.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. " + 1504throw 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."); 1507var protocol = ResolveSandboxPortProtocol(resource.TargetResource, resolvedEndpoint.Endpoint); 1509endpointOptions?.TryGetValue(resolvedEndpoint.Endpoint.Name, out resolvedEndpointOptions); 1510unmatchedEndpointOptions?.Remove(resolvedEndpoint.Endpoint.Name); 1512resolvedEndpoint.Endpoint.Name, 1523throw 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."); 1530throw 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."); 1569return resource is IDotnetProgramResource && endpoint.Endpoint.Transport is "http" or "http2"
AzureSandboxEndpointPropertyValueProvider.cs (1)
188if (string.Equals(resolvedEndpoint.Endpoint.Name, endpointName, StringComparison.Ordinal))
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
45var endpoint = resolved.Endpoint;
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
235var endpoint = resolved.Endpoint;
Aspire.Hosting.Radius (2)
Publishing\RadiusServiceDiscovery.cs (2)
94.FirstOrDefault(r => string.Equals(r.Endpoint.Name, endpointName, StringComparison.OrdinalIgnoreCase)); 121ReferenceEquals(resolved.Endpoint, launchDefaults.DefaultHttpsEndpoint))