40 references to WithEndpoint
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
568return builder.WithEndpoint(targetPort: targetPort, port: port, scheme: "http", name: name, env: env, isProxied: isProxied); 588return builder.WithEndpoint(targetPort: targetPort, port: port, scheme: "https", name: name, env: env, isProxied: isProxied); 618/// 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.Tests (2)
AzureContainerAppsTests.cs (2)
1812.WithEndpoint(scheme: "foo"); 1872.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)
415builder.WithEndpoint(scheme: "tcp", name: "orleans-silo", env: "Orleans__Endpoints__SiloPort", isProxied: true, isExternal: false); 416builder.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)
66.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\ApplicationExecutorTests.cs (15)
109.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true); 141.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: true); 173.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true); 206.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true); 243.WithEndpoint(name: "EqualPortAndTargetPort", port: desiredPort, targetPort: desiredPort, env: "EQUAL_PORT_AND_TARGET_PORT", isProxied: true); 260.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false); 294.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false); 328.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false); 653.WithEndpoint(name: "NoPortNoTargetPort", env: "NO_PORT_NO_TARGET_PORT", isProxied: true) 701.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPortOne, env: "PORT_SET_NO_TARGET_PORT", isProxied: true) 739.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: true); 774.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: true); 852.WithEndpoint(name: "PortSetNoTargetPort", port: desiredPort, env: "PORT_SET_NO_TARGET_PORT", isProxied: false); 888.WithEndpoint(name: "NoPortTargetPortSet", targetPort: desiredTargetPort, env: "NO_PORT_TARGET_PORT_SET", isProxied: false); 925.WithEndpoint(name: "PortAndTargetPortSet", port: desiredPort, targetPort: desiredTargetPort, env: "PORT_AND_TARGET_PORT_SET", isProxied: false);
DistributedApplicationTests.cs (2)
275.WithEndpoint(targetPort: 6379, name: "tcp", env: "REDIS_PORT"); 352.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");