11 writes to UriScheme
Aspire.Hosting (3)
ApplicationModel\EndpointAnnotation.cs (1)
47UriScheme = uriScheme;
ProjectResourceBuilderExtensions.cs (2)
454e.UriScheme = bindingAddress.Scheme; 508e.UriScheme = scheme;
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
62e.UriScheme = "http";
Aspire.Hosting.Dapr.Tests (2)
DaprTests.cs (2)
112e.UriScheme = "http"; 118e.UriScheme = "https";
Aspire.Hosting.Tests (5)
DistributedApplicationTests.cs (1)
733e.UriScheme = "https";
ExecutableResourceTests.cs (1)
24e.UriScheme = "http";
ExpressionResolverTests.cs (2)
38e.UriScheme = "http"; 43e.UriScheme = "https";
ProjectResourceTests.cs (1)
574e.UriScheme = "http";
69 references to UriScheme
Aspire.Hosting (14)
ApplicationModel\AllocatedEndpoint.cs (1)
58public string UriScheme => Endpoint.UriScheme;
ApplicationModel\EndpointAnnotation.cs (2)
118get => _transport ?? (UriScheme == "http" || UriScheme == "https" ? "http" : Protocol.ToString().ToLowerInvariant());
ApplicationModel\EndpointReference.cs (1)
97public string Scheme => EndpointAnnotation.UriScheme;
ApplicationModel\ProjectResource.cs (1)
25if (endpoint.UriScheme is not ("http" or "https") || // Only process http and https endpoints
Devcontainers\DevcontainerPortForwardingLifecycleHook.cs (2)
53if (_codespacesOptions.Value.IsCodespace && !(endpoint.UriScheme is "https" or "http")) 67endpoint.UriScheme,
Publishing\ManifestPublishingContext.cs (5)
409Writer.WriteString("scheme", endpoint.UriScheme); 413int? targetPort = (resource, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch 431if (resource is ProjectResource && IsHttpScheme(endpoint.UriScheme)) 433httpSchemesEncountered.Add(endpoint.UriScheme); 436int? exposedPort = (endpoint.UriScheme, endpoint.Port, targetPort) switch
ResourceBuilderExtensions.cs (2)
608if (endpoint.UriScheme == "http" || endpoint.UriScheme == "https")
Aspire.Hosting.Azure.AppContainers (12)
AzureContainerAppsInfrastructure.cs (12)
261var unsupportedEndpoints = endpoints.Where(e => e.UriScheme is not ("tcp" or "http" or "https")).ToArray(); 288int? targetPort = (resource, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch 306if (resource is ProjectResource && IsHttpScheme(endpoint.UriScheme)) 308httpSchemesEncountered.Add(endpoint.UriScheme); 311int? exposedPort = (endpoint.UriScheme, endpoint.Port, targetPort) switch 351IsHttpOnly = g.All(e => e.UriScheme is "http" or "https"), 353UniqueSchemes = g.Select(e => e.UriScheme).Distinct().ToArray(), 414if (e.UriScheme is "http" && e.Port is not null and not 80) 419if (e.UriScheme is "https" && e.Port is not null and not 443) 425var port = e.UriScheme is "http" ? 80 : 443; 427_endpointMapping[e.Name] = new(e.UriScheme, resource.Name, port, targetPort, true, httpIngress.External); 447_endpointMapping[e.Name] = new(e.UriScheme, resource.Name, e.Port ?? g.Port.Value, g.Port.Value, false, g.External);
Aspire.Hosting.Elasticsearch.Tests (4)
AddElasticsearchTests.cs (4)
39Assert.Equal("http", primaryEndpoint.UriScheme); 48Assert.Equal("tcp", internalEndpoint.UriScheme); 101Assert.Equal("http", primaryEndpoint.UriScheme); 110Assert.Equal("tcp", internalEndpoint.UriScheme);
Aspire.Hosting.Garnet.Tests (2)
AddGarnetTests.cs (2)
34Assert.Equal("tcp", endpoint.UriScheme); 62Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.Kafka.Tests (2)
AddKafkaTests.cs (2)
38Assert.Equal("tcp", primaryEndpoint.UriScheme); 47Assert.Equal("tcp", internalEndpoint.UriScheme);
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
36Assert.Equal("http", endpoint.UriScheme);
Aspire.Hosting.Milvus.Tests (1)
AddMilvusTests.cs (1)
204Assert.Equal("http", grpcEndpoint.UriScheme);
Aspire.Hosting.MongoDB.Tests (2)
AddMongoDBTests.cs (2)
36Assert.Equal("tcp", endpoint.UriScheme); 64Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
61Assert.Equal("tcp", endpoint.UriScheme); 101Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.Nats.Tests (2)
AddNatsTests.cs (2)
106Assert.Equal("tcp", endpoint.UriScheme); 152Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.Oracle.Tests (3)
AddOracleTests.cs (3)
60Assert.Equal("tcp", endpoint.UriScheme); 100Assert.Equal("tcp", endpoint.UriScheme); 183Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
70Assert.Equal("tcp", endpoint.UriScheme); 125Assert.Equal("tcp", endpoint.UriScheme); 217Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.Qdrant.Tests (5)
AddQdrantTests.cs (5)
65Assert.Equal("http", endpoint.UriScheme); 105Assert.Equal("http", endpoint.UriScheme); 138Assert.Equal("http", endpoint.UriScheme); 300Assert.Equal("http", grpcEndpoint.UriScheme); 308Assert.Equal("http", httpEndpoint.UriScheme);
Aspire.Hosting.RabbitMQ.Tests (2)
AddRabbitMQTests.cs (2)
63Assert.Equal("tcp", primaryEndpoint.UriScheme); 73Assert.Equal("http", mangementEndpoint.UriScheme);
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
43Assert.Equal("tcp", endpoint.UriScheme); 71Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.SqlServer.Tests (1)
AddSqlServerTests.cs (1)
56Assert.Equal("tcp", endpoint.UriScheme);
Aspire.Hosting.Tests (9)
KestrelConfigTests.cs (6)
30Assert.Equal("http", a.UriScheme); 66Assert.Equal("http", a.UriScheme); 72Assert.Equal("http", a.UriScheme); 99Assert.Equal("https", a.UriScheme); 116Assert.Equal("http", a.UriScheme); 124Assert.Equal("http", a.UriScheme);
ProjectResourceTests.cs (2)
255Assert.Equal("https", a.UriScheme); 261Assert.Equal("http", a.UriScheme);
WithEndpointTests.cs (1)
222Assert.Equal("http", endpoints[0].UriScheme);
Aspire.Hosting.Valkey.Tests (2)
AddValkeyTests.cs (2)
34Assert.Equal("tcp", endpoint.UriScheme); 62Assert.Equal("tcp", endpoint.UriScheme);