168 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.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)
762.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
974.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true);
1012.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
1049.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
1081.WithEndpoint(name: "fixed", targetPort: fixedTargetPort, isProxied: true);
1083.WithEndpoint(name: "dynamic", isProxied: true);
1114.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
1151.WithEndpoint(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true);
1168.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT")
1197.WithEndpoint(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true)
1227.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
1263.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
1307.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
1342.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
1373.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
1405.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
1435.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: false);
1465.WithEndpoint(name: "tcp", isProxied: false);
1547.WithEndpoint(name: "fixed", port: fixedPort, isProxied: false);
1549.WithEndpoint(name: "dynamic", env: "DYNAMIC_PORT", isProxied: false);
1586.WithEndpoint(name: "http", port: port, env: "HTTP_PORT");
1624.WithEndpoint(name: "http", port: port, targetPort: targetPort);
1662.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1705.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1743.WithEndpoint(name: "http", targetPort: targetPort, isProxied: false);
1781.WithEndpoint(name: "http", env: "PERSISTENT_PORT", isProxied: false);
1783.WithEndpoint(name: "http", env: "DYNAMIC_PORT", isProxied: false);
1823.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1873er => er.WithEndpoint(name: "PortAndTargetPortSetDifferently", port: desiredPortOne, targetPort: desiredPortTwo, env: "PORT_AND_TARGET_PORT_SET_DIFFERENTLY", isProxied: false),
1879er => er.WithEndpoint(name: "ZeroPortAndTargetPortSetDifferently", port: 0, targetPort: desiredPortOne, env: "ZERO_PORT_AND_TARGET_PORT_SET_DIFFERENTLY", isProxied: false),
3931.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true)
3981.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT")
4136.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
4171.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
4203.WithEndpoint(name: "tcp", targetPort: 5432, isProxied: true);
4356cr => cr.WithEndpoint(name: "NoPortNoTargetPortProxied", env: "NO_PORT_NO_TARGET_PORT_PROXIED", isProxied: true),
4362cr => cr.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT", isProxied: true),
4368cr => cr.WithEndpoint(name: "NoPortNoTargetPortProxyless", env: "NO_PORT_NO_TARGET_PORT_PROXYLESS", isProxied: false),
4374cr => cr.WithEndpoint(name: "ZeroPortNoTargetPortProxyless", port: 0, env: "ZERO_PORT_NO_TARGET_PORT_PROXYLESS", isProxied: false),
4402.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
4435.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
4467.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
4541.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
4589.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
4619.WithEndpoint(name: "NoPortTargetPortSet", scheme: "http", targetPort: desiredTargetPort, isProxied: false)
4666.WithEndpoint(name: "NoPortTargetPortSet", scheme: "http", targetPort: desiredTargetPort, isProxied: false)
4743.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
4777.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true)
4809.WithEndpoint(name: "PortAndProtocolSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_PROTOCOL_SET", isProxied: false, protocol: System.Net.Sockets.ProtocolType.Udp);
9602.WithEndpoint(name: "proxied", targetPort: 1234, port: 5678, isProxied: true)
9603.WithEndpoint(name: "notProxied", port: 8765, isProxied: false);
9606.WithEndpoint(name: "proxied", port: 15678, targetPort: 11234, isProxied: true)
9607.WithEndpoint(name: "notProxied", port: 18765, isProxied: false)
9612.WithEndpoint(name: "proxied", port: 25678, targetPort: 21234, isProxied: true)
9613.WithEndpoint(name: "notProxied", port: 28765, isProxied: false)
9742.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9787.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9823.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9862.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10099.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10139.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10171.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10199.WithEndpoint(name: "http", scheme: "http", targetPort: 1234, port: 5678, isProxied: true)
10200.WithEndpoint(name: "unused", targetPort: 1235, port: 5679, isProxied: true);
10249.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10293.WithEndpoint(name: "http", scheme: "http", targetPort: 8080, port: 5678, isProxied: true);
10330.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10369.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10433.WithEndpoint(
10491.WithEndpoint(name: "http", targetPort: 1234, port: 5678);
10532.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10583.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10623.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10678.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10681.WithEndpoint(name: "http", targetPort: 1235, port: 5679, isProxied: true);
10744.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
10751.WithEndpoint(name: "http", targetPort: 1235, port: 5679, isProxied: true)
DistributedApplicationTests.cs (4)
531.WithEndpoint(port: 6379, targetPort: 6379, name: "tcp", env: "REDIS_PORT")
618.WithEndpoint(port: 6379, targetPort: 6379, name: "tcp", env: "REDIS_PORT")
1208.WithEndpoint(targetPort: 6379, name: "tcp", env: "REDIS_PORT");
1299.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)