1 write to Name
Aspire.Hosting (1)
112 references to Name
Aspire.Hosting (19)
Aspire.Hosting.Azure.AppContainers (7)
ContainerAppContext.cs (7)
234throw new NotSupportedException($"The endpoint(s) {string.Join(", ", unsupportedEndpoints.Select(e => $"'{e.Name}'"))} specify an unsupported scheme. The supported schemes are 'http', 'https', and 'tcp'.");
255endpointIndexMap[endpoint.Name] = endpointIndexMap.Count;
323Index = g.Min(e => endpointIndexMap[e.Name])
385throw new NotSupportedException($"The endpoint '{e.Name}' is an http endpoint and must use port 80");
390throw new NotSupportedException($"The endpoint '{e.Name}' is an https endpoint and must use port 443");
396_endpointMapping[e.Name] = new(e.UriScheme, NormalizedContainerAppName, port, targetPort, true, httpIngress.External);
416_endpointMapping[e.Name] = new(e.UriScheme, NormalizedContainerAppName, e.Port ?? g.Port.Value, g.Port.Value, false, g.External);
Aspire.Hosting.Azure.AppService (3)
Aspire.Hosting.Azure.Tests (5)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.Kafka.Tests (4)
Aspire.Hosting.Keycloak.Tests (4)
Aspire.Hosting.Kubernetes (6)
Aspire.Hosting.Milvus.Tests (5)
Aspire.Hosting.MongoDB.Tests (2)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Nats.Tests (2)
Aspire.Hosting.Oracle.Tests (3)
Aspire.Hosting.PostgreSQL.Tests (3)
Aspire.Hosting.Qdrant.Tests (8)
Aspire.Hosting.RabbitMQ.Tests (4)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Seq.Tests (2)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Tests (23)
KestrelConfigTests.cs (10)
28Assert.Equal("http", a.Name);
34Assert.Equal("ExplicitHttp", a.Name);
64Assert.Equal("http", a.Name);
70Assert.Equal("ExplicitHttp", a.Name);
97Assert.Equal("https", a.Name);
114Assert.Equal("FirstHttpEndpoint", a.Name);
122Assert.Equal("SecondHttpEndpoint", a.Name);
287.WithEndpointsInEnvironment(e => e.Name != "FirstHttpEndpoint")
288.WithEndpointsInEnvironment(e => e.Name != "ExplicitProxiedHttp");
462endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", endpoint.Port ?? 0, targetPortExpression: $"port_{endpoint.Name}");
Aspire.Hosting.Valkey.Tests (2)
TestProject.AppHost (1)