24 references to Scheme
Aspire.Hosting (12)
ApplicationModel\EndpointReference.cs (3)
74
public bool IsHttp => string.Equals(
Scheme
, "http", StringComparisons.EndpointAnnotationUriScheme);
79
public bool IsHttps => string.Equals(
Scheme
, "https", StringComparisons.EndpointAnnotationUriScheme);
365
EndpointProperty.Scheme => new(Endpoint.
Scheme
),
ResourceBuilderExtensions.cs (9)
849
var schemeKey = endpoint.IsHttpSchemeNamedEndpoint ? endpoint.
Scheme
: endpointName;
2811
if (endpoint.
Scheme
!= "http" && endpoint.
Scheme
!= "https")
2813
throw 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.");
3686
if (endpoint.
Scheme
!= "http" && endpoint.
Scheme
!= "https")
3688
throw 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.");
4380
if (!s_httpSchemes.Contains(matchingEndpoint.
Scheme
, StringComparers.EndpointAnnotationUriScheme))
4382
throw 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)
242
var protocol = probeAnnotation.EndpointReference.
Scheme
== "http"
Aspire.Hosting.DevTunnels (4)
DevTunnelResourceBuilderExtensions.cs (4)
503
var schemeKey = port.TargetEndpoint.IsHttpSchemeNamedEndpoint ? port.TargetEndpoint.
Scheme
: endpointName;
562
portOptions.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)
236
context.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)
260
var scheme = endpointRef.
Scheme
;
Aspire.Hosting.Yarp (2)
ConfigurationBuilder\YarpCluster.cs (2)
43
return $"{endpoint.
Scheme
}://{endpoint.Resource.Name}";
46
return $"{endpoint.
Scheme
}://_{endpoint.EndpointName}.{endpoint.Resource.Name}";