145 references to WithEndpoint
Aspire.Hosting (7)
ResourceBuilderExtensions.cs (7)
1641return WithEndpoint(builder, port, targetPort, scheme, name, env, (bool?)isProxied, isExternal, protocol);
1726return WithEndpoint(builder, port, targetPort, scheme, name, env, isProxied, isExternal, protocol: null);
1751return WithEndpoint(builder, port, targetPort, scheme, name, env, (bool?)isProxied, isExternal, protocol: null);
1778return builder.WithEndpoint(targetPort: targetPort, port: port, scheme: "http", name: name, env: env, isProxied: isProxied);
1826return builder.WithEndpoint(targetPort: targetPort, port: port, scheme: "https", name: name, env: env, isProxied: isProxied);
1879/// 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).
1897/// 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 (2)
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.MySql (1)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Orleans (2)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.RabbitMQ (1)
Aspire.Hosting.Redis (2)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Tests (91)
Dcp\DcpExecutorTests.cs (61)
410.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
621.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true);
653.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
685.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
718.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
755.WithEndpoint(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true);
772.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT")
801.WithEndpoint(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true)
831.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
866.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT");
904.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
939.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
970.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
1002.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
1032.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: false);
1062.WithEndpoint(name: "tcp", isProxied: false);
1144.WithEndpoint(name: "fixed", port: fixedPort, isProxied: false);
1146.WithEndpoint(name: "dynamic", env: "DYNAMIC_PORT", isProxied: false);
1183.WithEndpoint(name: "http", port: port, env: "HTTP_PORT");
1221.WithEndpoint(name: "http", port: port, targetPort: targetPort);
1259.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1302.WithEndpoint(name: "http", env: "HTTP_PORT", isProxied: false);
1340.WithEndpoint(name: "http", targetPort: targetPort, isProxied: false);
1378.WithEndpoint(name: "http", env: "PERSISTENT_PORT", isProxied: false);
1380.WithEndpoint(name: "http", env: "DYNAMIC_PORT", isProxied: false);
1425er => er.WithEndpoint(name: "PortAndTargetPortSetDifferently", port: desiredPortOne, targetPort: desiredPortTwo, env: "PORT_AND_TARGET_PORT_SET_DIFFERENTLY", isProxied: false),
1431er => er.WithEndpoint(name: "ZeroPortAndTargetPortSetDifferently", port: 0, targetPort: desiredPortOne, env: "ZERO_PORT_AND_TARGET_PORT_SET_DIFFERENTLY", isProxied: false),
3370.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true)
3418.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT")
3564.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
3599.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
3637cr => cr.WithEndpoint(name: "NoPortNoTargetPortProxied", env: "NO_PORT_NO_TARGET_PORT_PROXIED", isProxied: true),
3643cr => cr.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT", isProxied: true),
3649cr => cr.WithEndpoint(name: "NoPortNoTargetPortProxyless", env: "NO_PORT_NO_TARGET_PORT_PROXYLESS", isProxied: false),
3655cr => cr.WithEndpoint(name: "ZeroPortNoTargetPortProxyless", port: 0, env: "ZERO_PORT_NO_TARGET_PORT_PROXYLESS", isProxied: false),
3683.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
3716.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
3748.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
3822.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
3870.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, isProxied: false);
3900.WithEndpoint(name: "NoPortTargetPortSet", scheme: "http", targetPort: desiredTargetPort, isProxied: false)
3947.WithEndpoint(name: "NoPortTargetPortSet", scheme: "http", targetPort: desiredTargetPort, isProxied: false)
4024.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
4058.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true)
4090.WithEndpoint(name: "PortAndProtocolSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_PROTOCOL_SET", isProxied: false, protocol: System.Net.Sockets.ProtocolType.Udp);
8825.WithEndpoint(name: "proxied", targetPort: 1234, port: 5678, isProxied: true)
8826.WithEndpoint(name: "notProxied", port: 8765, isProxied: false);
8829.WithEndpoint(name: "proxied", port: 15678, targetPort: 11234, isProxied: true)
8830.WithEndpoint(name: "notProxied", port: 18765, isProxied: false)
8835.WithEndpoint(name: "proxied", port: 25678, targetPort: 21234, isProxied: true)
8836.WithEndpoint(name: "notProxied", port: 28765, isProxied: false)
8965.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9010.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9046.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9085.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9322.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9362.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9395.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9398.WithEndpoint(name: "http", targetPort: 1235, port: 5679, isProxied: true);
9461.WithEndpoint(name: "http", targetPort: 1234, port: 5678, isProxied: true);
9468.WithEndpoint(name: "http", targetPort: 1235, port: 5679, isProxied: true)
DistributedApplicationTests.cs (4)
527.WithEndpoint(port: 6379, targetPort: 6379, name: "tcp", env: "REDIS_PORT")
614.WithEndpoint(port: 6379, targetPort: 6379, name: "tcp", env: "REDIS_PORT")
1204.WithEndpoint(targetPort: 6379, name: "tcp", env: "REDIS_PORT");
1292.WithEndpoint(targetPort: 6379, name: "tcp", env: "REDIS_PORT");
Aspire.Hosting.Valkey (1)
Aspire.Hosting.Yarp.Tests (3)
TestingAppHost1.AppHost (1)