1 write to Endpoint
Aspire.Hosting (1)
ApplicationModel\ResourceExtensions.cs (1)
907Endpoint = endpoint,
34 references to Endpoint
Aspire.Hosting (1)
Publishing\ManifestPublishingContext.cs (1)
498var endpoint = resolved.Endpoint;
Aspire.Hosting.Azure.AppContainers (10)
ContainerAppContext.cs (10)
145var unsupportedEndpoints = resolvedEndpoints.Where(r => r.Endpoint.Transport is not ("http" or "http2" or "tcp")).ToArray(); 149throw 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'."); 160External = g.Any(x => x.resolved.Endpoint.IsExternal), 161IsHttpOnly = g.All(x => x.resolved.Endpoint.Transport is "http" or "http2"), 162AnyH2 = g.Any(x => x.resolved.Endpoint.Transport is "http2"), 163UniqueTransports = g.Select(x => x.resolved.Endpoint.Transport).Distinct().ToArray(), 223var endpoint = resolved.Endpoint; 238.Where(r => r.Endpoint.UriScheme is "http") 239.Select(r => r.Endpoint.Name) 262var endpoint = resolved.Endpoint;
Aspire.Hosting.Azure.AppService (6)
AzureAppServiceWebsiteContext.cs (6)
104var unsupportedEndpoints = resolvedEndpoints.Where(r => r.Endpoint.UriScheme is not ("http" or "https")).ToArray(); 107throw 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) 126var 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)
1486if (!resolvedEndpoint.Endpoint.IsExternal) 1492string.Equals(resolvedEndpoint.Endpoint.UriScheme, Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) && 1494string.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. " + 1506throw 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."); 1509var protocol = ResolveSandboxPortProtocol(resource.TargetResource, resolvedEndpoint.Endpoint); 1511endpointOptions?.TryGetValue(resolvedEndpoint.Endpoint.Name, out resolvedEndpointOptions); 1512unmatchedEndpointOptions?.Remove(resolvedEndpoint.Endpoint.Name); 1514resolvedEndpoint.Endpoint.Name, 1525throw 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."); 1532throw 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."); 1571return resource is ProjectResource && endpoint.Endpoint.Transport is "http" or "http2"
AzureSandboxEndpointPropertyValueProvider.cs (1)
191if (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)
237var 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))