41 references to WithEndpoint
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
590
return builder.
WithEndpoint
(targetPort: targetPort, port: port, scheme: "http", name: name, env: env, isProxied: isProxied);
610
return builder.
WithEndpoint
(targetPort: targetPort, port: port, scheme: "https", name: name, env: env, isProxied: isProxied);
640
/// 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?)"/> or by launch settings (for project resources).
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
265
.
WithEndpoint
(targetPort: 1433, name: "tcp")
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppsTests.cs (2)
2023
.
WithEndpoint
(scheme: "foo");
2083
.
WithEndpoint
(targetPort: 80);
Aspire.Hosting.Elasticsearch (1)
ElasticsearchBuilderExtensions.cs (1)
86
.
WithEndpoint
(targetPort: ElasticsearchInternalPort, port: port, name: ElasticsearchResource.InternalEndpointName)
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
54
.
WithEndpoint
(port: port, targetPort: 3306, name: MySqlServerResource.PrimaryEndpointName) // Internal port is always 3306.
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
51
.
WithEndpoint
(port: port, targetPort: 1521, name: OracleDatabaseServerResource.PrimaryEndpointName)
Aspire.Hosting.Orleans (2)
OrleansServiceExtensions.cs (2)
415
builder.
WithEndpoint
(scheme: "tcp", name: "orleans-silo", env: "Orleans__Endpoints__SiloPort", isProxied: true, isExternal: false);
416
builder.
WithEndpoint
(scheme: "tcp", name: "orleans-gateway", env: "Orleans__Endpoints__GatewayPort", isProxied: true, isExternal: false);
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
78
.
WithEndpoint
(port: port, targetPort: 5432, name: PostgresServerResource.PrimaryEndpointName) // Internal port is always 5432.
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
77
.
WithEndpoint
(port: port, targetPort: 5672, name: RabbitMQServerResource.PrimaryEndpointName)
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
52
.
WithEndpoint
(port: port, targetPort: 1433, name: SqlServerServerResource.PrimaryEndpointName)
Aspire.Hosting.Tests (26)
Dcp\DcpExecutorTests.cs (15)
113
.
WithEndpoint
(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true);
145
.
WithEndpoint
(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: true);
177
.
WithEndpoint
(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
210
.
WithEndpoint
(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
247
.
WithEndpoint
(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true);
264
.
WithEndpoint
(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
298
.
WithEndpoint
(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
332
.
WithEndpoint
(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
657
.
WithEndpoint
(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true)
705
.
WithEndpoint
(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT", isProxied: true)
743
.
WithEndpoint
(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true);
778
.
WithEndpoint
(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true);
856
.
WithEndpoint
(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false);
892
.
WithEndpoint
(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false);
929
.
WithEndpoint
(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
DistributedApplicationTests.cs (2)
323
.
WithEndpoint
(targetPort: 6379, name: "tcp", env: "REDIS_PORT");
412
.
WithEndpoint
(targetPort: 6379, name: "tcp", env: "REDIS_PORT");
HealthCheckTests.cs (2)
24
.
WithEndpoint
(targetPort: 9999, scheme: "tcp", name: "nonhttp")
46
.
WithEndpoint
(targetPort: 9999, scheme: "tcp", name: "nonhttp")
WithEndpointTests.cs (7)
23
.
WithEndpoint
(3000, 1000, name: "mybinding")
249
.
WithEndpoint
(name: "ep0")
270
.
WithEndpoint
(name: "ep0", port: 8080, targetPort: 3000);
433
.
WithEndpoint
(name: "custom");
464
.
WithEndpoint
(scheme: "tcp", name: "tcp0"); // Will get a targetPort
558
.
WithEndpoint
(name: "custom");
561
.
WithEndpoint
(name: "custom");
TestingAppHost1.AppHost (1)
Program.cs (1)
14
.
WithEndpoint
(name: "myendpoint1");