324 references to WithEndpoint
Aspire.Hosting (10)
ExecutableResourceBuilderExtensions.cs (2)
174cb.WithEndpoint("http", endpoint => endpoint.TargetPort ??= 8080, createIfNotExists: false); 175cb.WithEndpoint("https", endpoint => endpoint.TargetPort ??= 8080, createIfNotExists: false);
ProjectResourceBuilderExtensions.cs (5)
756builder.WithEndpoint(schemeAsEndpointName ?? endpoint.EndpointName, e => 825builder.WithEndpoint(endpointName, e => 913builder.WithEndpoint(scheme, e => 1098cb.WithEndpoint("http", e => e.TargetPort ??= 8080, createIfNotExists: false); 1099cb.WithEndpoint("https", e => e.TargetPort ??= 8080, createIfNotExists: false);
ResourceBuilderExtensions.cs (3)
1750/// The <see cref="WithEndpoint{T}(IResourceBuilder{T}, string, Action{EndpointAnnotation}, bool)"/> method allows 1816return builder.WithEndpoint(endpointName, endpoint => callback(new EndpointUpdateContext(endpoint)), createIfNotExists); 1851return builder.WithEndpoint(endpointName, endpoint => callback(new EndpointUpdateContext(endpoint)), createIfNotExists: false);
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationExtensions.cs (1)
172return builder.WithEndpoint(EmulatorEndpointName, endpoint =>
Aspire.Hosting.Azure.CosmosDB (5)
AzureCosmosDBExtensions.cs (5)
156.WithEndpoint(EmulatorHealthEndpointName, e => e.ExcludeReferenceEndpoint = true) 214builder.WithEndpoint("emulator", ep => 303return builder.WithEndpoint("emulator", endpoint => 500var result = builder.WithEndpoint(endpointName: dataExplorerEndpointName, endpoint => 516builder.WithEndpoint(dataExplorerEndpointName, ep =>
Aspire.Hosting.Azure.EntraId.Tests (5)
EntraIdProvisioningTests.cs (5)
911.WithEndpoint("https", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 7081)); 981.WithEndpoint("https", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 7081)); 1005.WithEndpoint("https", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 7081)); 1008.WithEndpoint("https", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 7082)); 1036.WithEndpoint("https", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 7081));
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
272.WithEndpoint(EmulatorHealthEndpointName, e => e.ExcludeReferenceEndpoint = true) 419return builder.WithEndpoint("emulator", endpoint =>
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskResourceExtensions.cs (1)
150.WithEndpoint("grpc", endpoint => endpoint.Transport = "http2")
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
225return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
65containerBuilder.WithEndpoint("http", endpoint => endpoint.Port = port);
Aspire.Hosting.Azure.ServiceBus (2)
AzureServiceBusExtensions.cs (2)
420.WithEndpoint(EmulatorHealthEndpointName, e => e.ExcludeReferenceEndpoint = true) 617return builder.WithEndpoint("emulator", endpoint =>
Aspire.Hosting.Azure.Storage (3)
AzureStorageExtensions.cs (3)
313return builder.WithEndpoint("blob", endpoint => 330return builder.WithEndpoint("queue", endpoint => 348return builder.WithEndpoint("table", endpoint =>
Aspire.Hosting.Azure.Tests (53)
AzureContainerAppsTests.cs (4)
1103.WithEndpoint("http", e => e.Transport = "http2") 1320.WithEndpoint("foo", e => e.Transport = "quic"); 1360.WithEndpoint("ep1", e => e.IsExternal = true); 3152redis.WithEndpoint("tcp", e => e.TlsEnabled = true);
AzureCosmosDBExtensionsTests.cs (3)
273e.WithEndpoint("emulator", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 294e.WithEndpoint("emulator", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 1152e.WithEndpoint("emulator", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 10001));
AzureFunctionsTests.cs (4)
80.WithEndpoint("http", e => 259.WithEndpoint("https", e => 414.WithEndpoint("http", e => 441.WithEndpoint("http", e =>
AzureKeyVaultTests.cs (2)
430keyVault.WithEndpoint("https", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 8443)); 490keyVault.WithEndpoint("https", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 8443));
AzureManagedRedisExtensionsTests.cs (3)
57c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)); 80c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)) 150c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 6379));
AzurePostgresExtensionsTests.cs (6)
124c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)); 167c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)) 236c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)); 320c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5432)); 371c.WithEndpoint("tcp", e => 533postgres.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1234));
AzureRedisExtensionsTests.cs (4)
101c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)); 124c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)) 194c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 6379)); 240.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455))
AzureSandboxesTests.cs (1)
2691.WithEndpoint("http", endpoint => endpoint.IsExternal = true);
AzureSignalREmulatorFunctionalTest.cs (1)
25e.WithEndpoint("emulator", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 10001));
AzureSqlDatabaseConnectionPropertiesTests.cs (2)
90c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433)); 141c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433));
AzureSqlExtensionsTests.cs (2)
82c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455)); 134c.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 12455))
AzureStorageExtensionsTests.cs (15)
182e.WithEndpoint("blob", e => e.AllocatedEndpoint = new(e, "localhost", 10000)); 183e.WithEndpoint("queue", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 184e.WithEndpoint("table", e => e.AllocatedEndpoint = new(e, "localhost", 10002)); 230e.WithEndpoint("blob", e => e.AllocatedEndpoint = new(e, "localhost", 10000)); 231e.WithEndpoint("queue", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 232e.WithEndpoint("table", e => e.AllocatedEndpoint = new(e, "localhost", 10002)); 288e.WithEndpoint("blob", e => e.AllocatedEndpoint = new(e, "localhost", 10000)); 289e.WithEndpoint("queue", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 290e.WithEndpoint("table", e => e.AllocatedEndpoint = new(e, "localhost", 10002)); 336e.WithEndpoint("blob", e => e.AllocatedEndpoint = new(e, "localhost", 10000)); 337e.WithEndpoint("queue", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 338e.WithEndpoint("table", e => e.AllocatedEndpoint = new(e, "localhost", 10002)); 422e.WithEndpoint("blob", e => e.AllocatedEndpoint = new(e, "localhost", 10000)); 423e.WithEndpoint("queue", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 424e.WithEndpoint("table", e => e.AllocatedEndpoint = new(e, "localhost", 10002));
AzureWebPubSubEmulatorTests.cs (2)
24emulator.WithEndpoint("emulator", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", port))); 127emulator.WithEndpoint("emulator", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 18080)));
BicepUtilitiesTests.cs (1)
101.WithEndpoint("http", e =>
DurableTaskResourceExtensionsTests.cs (3)
25e.WithEndpoint("grpc", e => e.AllocatedEndpoint = new(e, "localhost", 8080)); 26e.WithEndpoint("http", e => e.AllocatedEndpoint = new(e, "localhost", 8081)); 27e.WithEndpoint("dashboard", e => e.AllocatedEndpoint = new(e, "localhost", 8082));
Aspire.Hosting.Blazor.Tests (2)
BlazorHostedExtensionsTests.cs (1)
217.WithEndpoint("https", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 7443), createIfNotExists: false)
WithBlazorAppTests.cs (1)
344.WithEndpoint("https", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 7443), createIfNotExists: false);
Aspire.Hosting.Browsers.Tests (33)
BrowserLogsBuilderExtensionsTests.cs (33)
33.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 87.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 142.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 178.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 211.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 288.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 315.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 339.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 365.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 387.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 408.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 432.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 468.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 511.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 551.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 590.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 635.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 675.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 685.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8081)) 725.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 779.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 823.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 863.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 936.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 992.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1077.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1150.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1206.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1266.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1330.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1386.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1521.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1589.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080))
Aspire.Hosting.Containers.Tests (2)
ContainerResourceTests.cs (2)
99.WithEndpoint("ep", e => 109.WithEndpoint("ep", e =>
Aspire.Hosting.Docker (2)
DockerComposeAspireDashboardResourceBuilderExtensions.cs (2)
46.WithEndpoint("http", e => e.IsExternal = true) 65return builder.WithEndpoint("http", e =>
Aspire.Hosting.Dotnet.Tests (2)
ProjectReferenceCompatibilityTests.cs (2)
51.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 1080)) 53.WithEndpoint("admin", endpoint =>
Aspire.Hosting.Garnet.Tests (2)
AddGarnetTests.cs (2)
75.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 339.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001));
Aspire.Hosting.JavaScript (3)
DenoHostingExtensions.cs (1)
450builder.WithEndpoint("http", e =>
JavaScriptHostingExtensions.cs (2)
1322builder.WithEndpoint("http", e => e.TargetPort = 5000, createIfNotExists: true); 2168resourceBuilder.WithEndpoint("http", ep => ep.UriScheme = "https");
Aspire.Hosting.JavaScript.Tests (1)
AddNodeAppTests.cs (1)
564.WithEndpoint("http", e =>
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
184return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.Kafka.Tests (8)
AddKafkaTests.cs (8)
23.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 42.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 9092)); 44.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 9093)); 123.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 180.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 198.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 265.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 286.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017))
Aspire.Hosting.Keycloak (3)
KeycloakResourceBuilderExtensions.cs (3)
76.WithEndpoint(ManagementEndpointName, e => e.ExcludeReferenceEndpoint = true) 122.WithEndpoint(KeycloakResource.PrimaryEndpointName, ep => 127.WithEndpoint(ManagementEndpointName, ep => ep.UriScheme = "https");
Aspire.Hosting.Kubernetes (4)
KubernetesAspireDashboardResourceBuilderExtensions.cs (4)
46.WithEndpoint("http", e => e.IsExternal = true) 75return builder.WithEndpoint("http", e => 108builder = builder.WithEndpoint("otlp-grpc", e => e.Port = grpcPort); 113builder = builder.WithEndpoint("otlp-http", e => e.Port = httpPort);
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
62.WithEndpoint(MilvusServerResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
83.WithEndpoint("grpc", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", MilvusPortGrpc)); 101.WithEndpoint("grpc", e =>
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
161.WithEndpoint(MongoDBServerResource.PrimaryEndpointName, endpoint => endpoint.TlsEnabled = true) 374return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.MongoDB.Tests (14)
AddMongoDBTests.cs (7)
99.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 226.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)) 394.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 462.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 490.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 559.WithEndpoint("tcp", e => 616.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017));
MongoDBReplCommandTests.cs (2)
47.WithEndpoint("tcp", endpoint => endpoint.TlsEnabled = tlsEnabled); 112.WithEndpoint("tcp", endpoint => endpoint.TlsEnabled = tlsEnabled);
ReplicaSet\AddMongoDBReplicaSetTests.cs (4)
77.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 79.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27018)); 101.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 440.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017));
SingleMemberReplicaSetTests.cs (1)
121.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 43210));
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
403return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.MySql.Tests (10)
AddMySqlTests.cs (7)
117.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 135.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 256mysql.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 284mysql1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 285mysql2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host3")); 376.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 392.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3306))
MySqlReplCommandTests.cs (3)
45.WithEndpoint("tcp", endpoint => endpoint.TargetPort = port); 66.WithEndpoint("tcp", endpoint => endpoint.TargetPort = null); 86.WithEndpoint("tcp", endpoint => endpoint.TargetPort = port);
Aspire.Hosting.Nats.Tests (2)
AddNatsTests.cs (2)
39.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 4222)); 69.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 4222));
Aspire.Hosting.Oracle.Tests (2)
AddOracleTests.cs (2)
115.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 134.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000))
Aspire.Hosting.PostgreSQL (3)
PostgresBuilderExtensions.cs (3)
301return builder.WithEndpoint("http", endpoint => 318return builder.WithEndpoint("http", endpoint => 679return builder.WithEndpoint(PostgresServerResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.PostgreSQL.Tests (15)
AddPostgresTests.cs (10)
156.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 172.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 195.WithEndpoint("tcp", e => 510pg1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 511pg2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host2")); 571pg1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 572pg2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host2")); 712.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 726.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 740.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5432));
PostgresMcpBuilderTests.cs (2)
48postgres.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5432)); 78.WithEndpoint("tcp", e =>
PostgresReplCommandTests.cs (3)
46.WithEndpoint("tcp", endpoint => endpoint.TargetPort = port); 67.WithEndpoint("tcp", endpoint => endpoint.TargetPort = null); 88.WithEndpoint("tcp", endpoint => endpoint.TargetPort = port);
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
328resourceBuilder.WithEndpoint("http", ep => ep.UriScheme = "https");
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
78.WithEndpoint(QdrantServerResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.Qdrant.Tests (5)
AddQdrantTests.cs (5)
163.WithEndpoint("grpc", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 6334)); 181.WithEndpoint("grpc", e => 186.WithEndpoint("http", e => 275.WithEndpoint("grpc", e => 280.WithEndpoint("http", e =>
Aspire.Hosting.RabbitMQ.Tests (1)
AddRabbitMQTests.cs (1)
98.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27011));
Aspire.Hosting.Radius.Tests (3)
Publishing\BackingResourceValueResolutionTests.cs (2)
964var cache = b.AddRedis("cache").WithEndpoint("tcp", e => e.TlsEnabled = true); 983var cache = b.AddRedis("cache").WithEndpoint("tcp", e => e.TlsEnabled = true);
RadiusEnvironmentResourceTests.cs (1)
116var cache = builder.AddRedis("cache").WithEndpoint("tcp", e => e.TlsEnabled = true);
Aspire.Hosting.Redis (5)
RedisBuilderExtensions.cs (5)
197.WithEndpoint(RedisResource.PrimaryEndpointName, e => 446resourceBuilder.WithEndpoint("http", ep => ep.UriScheme = "https"); 494return builder.WithEndpoint("http", endpoint => 511return builder.WithEndpoint("http", endpoint => 716return builder.WithEndpoint(RedisResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.Redis.Tests (14)
AddRedisTests.cs (13)
130.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 352redis1.WithEndpoint("tcp", e => 357redis2.WithEndpoint("tcp", e => 362redis3.WithEndpoint("tcp", e => 518.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 559redis.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 585redis.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 605redis1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 606redis2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host2")); 809.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 831.WithEndpoint("tcp", e => 947redis.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 6379)); 991.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 6379));
RedisReplCommandTests.cs (1)
42.WithEndpoint("tcp", endpoint => endpoint.TlsEnabled = tlsEnabled);
Aspire.Hosting.Seq.Tests (2)
AddSeqTests.cs (2)
74.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 234.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000));
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
365return builder.WithEndpoint(SqlServerServerResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.SqlServer.Tests (5)
AddSqlServerTests.cs (4)
90.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433)); 111.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433)) 277.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433)); 309.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433));
SqlServerReplCommandTests.cs (1)
98.WithEndpoint("tcp", endpoint => endpoint.TargetPort = targetPort);
Aspire.Hosting.Tests (78)
ApplicationModel\EndpointHostHelpersTests.cs (2)
220.WithEndpoint("primary", ep => 244.WithEndpoint("primary", ep =>
ContainerTunnelTests.cs (1)
87.WithEndpoint("http", e =>
Dcp\DcpExecutorTests.cs (1)
4943.WithEndpoint("customendpoint", (endpoint) =>
DistributedApplicationTests.cs (8)
1686testProgram.ServiceABuilder.WithReplicas(2).WithEndpoint("http", endpoint => 1702testProgram.ServiceABuilder.WithEndpoint("http", endpoint => 1727.WithEndpoint("http", e => 1764.WithEndpoint("http", e => 1770.WithEndpoint("https", e => 1834var redis = builder.AddRedis($"{testName}-redis", port).WithEndpoint("tcp", endpoint => 1840var redisNoPort = builder.AddRedis($"{testName}-redisNoPort").WithEndpoint("tcp", endpoint => 1994var redis = AddRedisContainer(builder, $"{testName}-redis").WithEndpoint("tcp", endpoint =>
ExecutableResourceTests.cs (2)
22.WithEndpoint("ep", e => 29.WithEndpoint("ep", e =>
ExpressionResolverTests.cs (4)
93.WithEndpoint("endpoint1", e => 103.WithEndpoint("endpoint2", e => 112.WithEndpoint("endpoint3", e => 306.WithEndpoint("http", ep => ep.AllocatedEndpoint = new(ep, "localhost", 8001, EndpointBindingMode.SingleAddress, "{{ targetPort }}", KnownNetworkIdentifiers.LocalhostNetwork));
ProjectResourceTests.cs (14)
419.WithEndpoint("http", e => 423.WithEndpoint("https", e => 427.WithEndpoint("http2", e => 431.WithEndpoint("dontinjectme", e => 462.WithEndpoint("http", e => 466.WithEndpoint("https", e => 470.WithEndpoint("http2", e => 474.WithEndpoint("dontinjectme", e => 521.WithEndpoint("http", e => 551builder.WithEndpoint(q, e => 694.WithEndpoint("ep", e => 701.WithEndpoint("ep", e => 734.WithEndpoint("http", e => 740.WithEndpoint("https", e =>
PublishAsDockerfileTests.cs (1)
321.WithEndpoint("http", e =>
ResourceDependencyTests.cs (1)
69.WithEndpoint("http", endpoint =>
WithEndpointTests.cs (8)
855.WithEndpoint("mybinding", endpoint => 871.WithEndpoint("mybinding", endpoint => 906.WithEndpoint("mybinding", endpoint => 943.WithEndpoint("mybinding", endpoint => 961.WithEndpoint("mybinding", endpoint => 977var projectA = AddProject<ProjectA>(builder, "projecta").WithEndpoint("mybinding", endpoint => 1058.WithEndpoint("https", e => e.TargetHost = "example.localhost", createIfNotExists: false) 1092.WithEndpoint("https", e => e.TargetHost = host, createIfNotExists: false)
WithEnvironmentTests.cs (5)
57.WithEndpoint("primary", ep => 108.WithEndpoint("primary", ep => 134.WithEndpoint("primary", ep => 210.WithEndpoint("mybinding", e => 462.WithEndpoint("primary", ep =>
WithMcpServerTests.cs (5)
45.WithEndpoint("https", e => 71.WithEndpoint("http", e => 96.WithEndpoint("http", e => 121.WithEndpoint("http", e => 146.WithEndpoint("http", e =>
WithReferenceTests.cs (26)
250.WithEndpoint("api", e => e.ExcludeReferenceEndpoint = true); 264.WithEndpoint("management", e => e.ExcludeReferenceEndpoint = true); 291.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 315.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 335.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 362.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 408.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 412.WithEndpoint("myconflictingbinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 436.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 440.WithEndpoint("mynonconflictingbinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 464.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 466.WithEndpoint("mybinding2", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 494.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 496.WithEndpoint("mybinding2", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 526.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 548.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 1178.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 1180.WithEndpoint("management", e => 1207.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 1209.WithEndpoint("management", e => 1236.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 1238.WithEndpoint("management", e => 1266.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 443)); 1284.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 8080)) 1286.WithEndpoint("prometheus", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 9090)); 1304.WithEndpoint("data", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 8080));
Aspire.Hosting.Valkey.Tests (3)
AddValkeyTests.cs (2)
75.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 329.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001));
ValkeyReplCommandTests.cs (1)
43.WithEndpoint("tcp", endpoint => endpoint.TargetPort = port);
Aspire.Hosting.Yarp (3)
YarpResourceExtensions.cs (3)
65.WithEndpoint("https", ep => 125return builder.WithEndpoint("http", endpoint => 145return builder.WithEndpoint("https", ep => ep.Port = port, createIfNotExists: false);
Aspire.Hosting.Yarp.Tests (1)
AddYarpTests.cs (1)
100backend.WithEndpoint("http", endpoint => endpoint.UriScheme = "https");
ProxylessEndToEnd.AppHost (2)
AppHost.cs (2)
6var redis = builder.AddRedis("redis", 9999).WithEndpoint("tcp", (endpoint) => 12.WithEndpoint("http", e =>