24 references to Scheme
Aspire.Hosting (12)
ApplicationModel\EndpointReference.cs (3)
74public bool IsHttp => string.Equals(Scheme, "http", StringComparisons.EndpointAnnotationUriScheme); 79public bool IsHttps => string.Equals(Scheme, "https", StringComparisons.EndpointAnnotationUriScheme); 365EndpointProperty.Scheme => new(Endpoint.Scheme),
ResourceBuilderExtensions.cs (9)
849var schemeKey = endpoint.IsHttpSchemeNamedEndpoint ? endpoint.Scheme : endpointName; 2811if (endpoint.Scheme != "http" && endpoint.Scheme != "https") 2813throw new DistributedApplicationException($"Could not create HTTP health check for resource '{builder.Resource.Name}' as the endpoint with name '{endpoint.EndpointName}' and scheme '{endpoint.Scheme}' is not an HTTP endpoint."); 3686if (endpoint.Scheme != "http" && endpoint.Scheme != "https") 3688throw new DistributedApplicationException($"Could not create HTTP command for resource '{builder.Resource.Name}' as the endpoint with name '{endpoint.EndpointName}' and scheme '{endpoint.Scheme}' is not an HTTP endpoint."); 4380if (!s_httpSchemes.Contains(matchingEndpoint.Scheme, StringComparers.EndpointAnnotationUriScheme)) 4382throw new DistributedApplicationException($"Could not create {errorDisplayNoun} for resource '{builder.Resource.Name}' as the endpoint with name '{matchingEndpoint.EndpointName}' and scheme '{matchingEndpoint.Scheme}' is not an HTTP endpoint.");
Aspire.Hosting.Azure.FrontDoor (1)
AzureFrontDoorExtensions.cs (1)
242var protocol = probeAnnotation.EndpointReference.Scheme == "http"
Aspire.Hosting.DevTunnels (4)
DevTunnelResourceBuilderExtensions.cs (4)
503var schemeKey = port.TargetEndpoint.IsHttpSchemeNamedEndpoint ? port.TargetEndpoint.Scheme : endpointName; 562portOptions.Protocol ??= targetEndpoint.Scheme switch 564"https" or "http" => targetEndpoint.Scheme, 565_ => throw new ArgumentException($"Cannot tunnel endpoint '{targetEndpoint.EndpointName}' on resource '{targetResource.Name}' because it uses the unsupported scheme '{targetEndpoint.Scheme}'. Only 'http' and 'https' endpoints can be tunneled."),
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
157.Where(kvp => kvp.Value is EndpointReference epRef && epRef.Scheme == "https" && kvp.Key.StartsWith("services__", StringComparison.Ordinal))
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
492.Where(kvp => kvp.Value is EndpointReference epRef && epRef.Scheme == "https" && kvp.Key.StartsWith("services__", StringComparison.Ordinal))
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
236context.EnvironmentVariables["MILVUS_URL"] = $"{resource.PrimaryEndpoint.Scheme}://{resource.Name}:{resource.PrimaryEndpoint.TargetPort}";
Aspire.Hosting.Radius (1)
Publishing\RadiusInfrastructureBuilder.cs (1)
1140&& epRef.Scheme == "https"
Aspire.Hosting.Tests (1)
EndpointReferenceTests.cs (1)
260var scheme = endpointRef.Scheme;
Aspire.Hosting.Yarp (2)
ConfigurationBuilder\YarpCluster.cs (2)
43return $"{endpoint.Scheme}://{endpoint.Resource.Name}"; 46return $"{endpoint.Scheme}://_{endpoint.EndpointName}.{endpoint.Resource.Name}";