169 references to WithEndpoint
Aspire.Hosting (7)
ResourceBuilderExtensions.cs (7)
1953return WithEndpoint(builder, port, targetPort, scheme, name, env, (bool?)isProxied, isExternal, protocol);
2038return WithEndpoint(builder, port, targetPort, scheme, name, env, isProxied, isExternal, protocol: null);
2063return WithEndpoint(builder, port, targetPort, scheme, name, env, (bool?)isProxied, isExternal, protocol: null);
2090return builder.WithEndpoint(targetPort: targetPort, port: port, scheme: "http", name: name, env: env, isProxied: isProxied);
2138return builder.WithEndpoint(targetPort: targetPort, port: port, scheme: "https", name: name, env: env, isProxied: isProxied);
2191/// Gets an <see cref="EndpointReference"/> by name from the resource. These endpoints are declared either using <see cref="WithEndpoint{T}(IResourceBuilder{T}, int?, int?, string?, string?, string?, bool?, bool?, ProtocolType?)"/> or by launch settings (for project resources).
2209/// Gets an <see cref="EndpointReference"/> by name from the resource. These endpoints are declared either using <see cref="WithEndpoint{T}(IResourceBuilder{T}, int?, int?, string?, string?, string?, bool?, bool?, ProtocolType?)"/> or by launch settings (for project resources).
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Tests (11)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
Aspire.Hosting.CodeGeneration.Python.Tests (1)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.Docker.Tests (3)
Aspire.Hosting.Garnet (1)
Aspire.Hosting.Kafka (2)
Aspire.Hosting.Kubernetes.Tests (4)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MongoDB.Tests (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Orleans (2)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Radius.Tests (2)
Aspire.Hosting.Redis (2)
Aspire.Hosting.Redis.Tests (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Tests (110)
Dcp\DcpExecutorTests.cs (77)
763.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
975.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true);
1013.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
1050.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
1082.WithEndpoint(name: "fixed", targetPort: fixedTargetPort, isProxied: true);
1084.WithEndpoint(name: "dynamic", isProxied: true);
1115.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
1152.WithEndpoint(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true);
1169.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT")
1198.WithEndpoint(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true)
1228.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
1264.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
1308.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
1343.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
1374.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
1406.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
1436.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: false);
1466.WithEndpoint(name: "tcp", isProxied: false);
1548.WithEndpoint(name: "fixed", port: fixedPort, isProxied: false);
1550.WithEndpoint(name: "dynamic", env: "DYNAMIC_PORT", isProxied: false);
1587.WithEndpoint(name: "http", port: port, env: "HTTP_PORT");
1625.WithEndpoint(name: "http", port: port, targetPort: targetPort);
1663.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1706.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1744.WithEndpoint(name: "http", targetPort: targetPort, isProxied: false);
1782.WithEndpoint(name: "http", env: "PERSISTENT_PORT", isProxied: false);
1784.WithEndpoint(name: "http", env: "DYNAMIC_PORT", isProxied: false);
1824.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1874er => er.WithEndpoint(name: "PortAndTargetPortSetDifferently", port: desiredPortOne, targetPort: desiredPortTwo, env: "PORT_AND_TARGET_PORT_SET_DIFFERENTLY", isProxied: false),
1880er => er.WithEndpoint(name: "ZeroPortAndTargetPortSetDifferently", port: 0, targetPort: desiredPortOne, env: "ZERO_PORT_AND_TARGET_PORT_SET_DIFFERENTLY", isProxied: false),
3932.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true)
3982.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT")
4137.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
4172.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
4204.WithEndpoint(name: "tcp", targetPort: 5432, isProxied: true);
4357cr => cr.WithEndpoint(name: "NoPortNoTargetPortProxied", env: "NO_PORT_NO_TARGET_PORT_PROXIED", isProxied: true),
4363cr => cr.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT", isProxied: true),
4369cr => cr.WithEndpoint(name: "NoPortNoTargetPortProxyless", env: "NO_PORT_NO_TARGET_PORT_PROXYLESS", isProxied: false),
4375cr => cr.WithEndpoint(name: "ZeroPortNoTargetPortProxyless", port: 0, env: "ZERO_PORT_NO_TARGET_PORT_PROXYLESS", isProxied: false),
4403.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
4436.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
4468.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
4542.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
4590.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
4620.WithEndpoint(name: "NoPortTargetPortSet", scheme: "http", targetPort: desiredTargetPort, isProxied: false)
4667.WithEndpoint(name: "NoPortTargetPortSet", scheme: "http", targetPort: desiredTargetPort, isProxied: false)
4744.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
4778.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true)
4810.WithEndpoint(name: "PortAndProtocolSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_PROTOCOL_SET", isProxied: false, protocol: System.Net.Sockets.ProtocolType.Udp);
9603.WithEndpoint(name: "proxied", targetPort: 1234, port: 5678, isProxied: true)
9604.WithEndpoint(name: "notProxied", port: 8765, isProxied: false);
9607.WithEndpoint(name: "proxied", port: 15678, targetPort: 11234, isProxied: true)
9608.WithEndpoint(name: "notProxied", port: 18765, isProxied: false)
9613.WithEndpoint(name: "proxied", port: 25678, targetPort: 21234, isProxied: true)
9614.WithEndpoint(name: "notProxied", port: 28765, isProxied: false)
9743.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9788.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9824.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9863.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10100.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10140.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10172.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10200.WithEndpoint(name: "http", scheme: "http", targetPort: 1234, port: 5678, isProxied: true)
10201.WithEndpoint(name: "unused", targetPort: 1235, port: 5679, isProxied: true);
10250.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10294.WithEndpoint(name: "http", scheme: "http", targetPort: 8080, port: 5678, isProxied: true);
10331.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10370.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10434.WithEndpoint(
10492.WithEndpoint(name: "http", targetPort: 1234, port: 5678);
10533.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10584.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10624.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10679.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10682.WithEndpoint(name: "http", targetPort: 1235, port: 5679, isProxied: true);
10745.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10752.WithEndpoint(name: "http", targetPort: 1235, port: 5679, isProxied: true)
DistributedApplicationTests.cs (4)
532.WithEndpoint(port: 6379, targetPort: 6379, name: "tcp", env: "REDIS_PORT")
619.WithEndpoint(port: 6379, targetPort: 6379, name: "tcp", env: "REDIS_PORT")
1209.WithEndpoint(targetPort: 6379, name: "tcp", env: "REDIS_PORT");
1300.WithEndpoint(targetPort: 6379, name: "tcp", env: "REDIS_PORT");
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Valkey.Tests (1)
Aspire.Hosting.Yarp.Tests (3)
TestingAppHost1.AppHost (1)