19 references to Scheme
Aspire.Hosting (12)
ApplicationModel\EndpointReference.cs (3)
55
public bool IsHttp => StringComparers.EndpointAnnotationUriScheme.Equals(
Scheme
, "http");
62
public bool IsHttps => StringComparers.EndpointAnnotationUriScheme.Equals(
Scheme
, "https");
298
EndpointProperty.Scheme => new(Endpoint.
Scheme
),
ApplicationModel\ExpressionResolver.cs (1)
27
endpointReference.
Scheme
,
ResourceBuilderExtensions.cs (8)
1788
if (endpoint.
Scheme
!= "http" && endpoint.
Scheme
!= "https")
1790
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.");
2140
if (endpoint.
Scheme
!= "http" && endpoint.
Scheme
!= "https")
2142
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.");
2523
if (!s_httpSchemes.Contains(matchingEndpoint.
Scheme
, StringComparers.EndpointAnnotationUriScheme))
2525
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.DevTunnels (3)
DevTunnelResourceBuilderExtensions.cs (3)
481
portOptions.Protocol ??= targetEndpoint.
Scheme
switch
483
"https" or "http" => targetEndpoint.
Scheme
,
484
_ => 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)
133
.Where(kvp => kvp.Value is EndpointReference epRef && epRef.
Scheme
== "https" && kvp.Key.StartsWith("services__"))
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
218
context.EnvironmentVariables["MILVUS_URL"] = $"{resource.PrimaryEndpoint.
Scheme
}://{resource.Name}:{resource.PrimaryEndpoint.TargetPort}";
Aspire.Hosting.Tests (1)
EndpointReferenceTests.cs (1)
258
var scheme = endpointRef.
Scheme
;
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpCluster.cs (1)
26
: this(endpoint.Resource.Name, $"{endpoint.
Scheme
}://_{endpoint.EndpointName}.{endpoint.Resource.Name}")