311 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)
706builder.WithEndpoint(schemeAsEndpointName ?? endpoint.EndpointName, e => 775builder.WithEndpoint(endpointName, e => 863builder.WithEndpoint(scheme, e => 1046cb.WithEndpoint("http", e => e.TargetPort ??= 8080, createIfNotExists: false); 1047cb.WithEndpoint("https", e => e.TargetPort ??= 8080, createIfNotExists: false);
ResourceBuilderExtensions.cs (3)
1500/// The <see cref="WithEndpoint{T}(IResourceBuilder{T}, string, Action{EndpointAnnotation}, bool)"/> method allows 1566return builder.WithEndpoint(endpointName, endpoint => callback(new EndpointUpdateContext(endpoint)), createIfNotExists); 1601return 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 => 518builder.WithEndpoint(dataExplorerEndpointName, ep =>
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)
421.WithEndpoint(EmulatorHealthEndpointName, e => e.ExcludeReferenceEndpoint = true) 581return builder.WithEndpoint("emulator", endpoint =>
Aspire.Hosting.Azure.Storage (3)
AzureStorageExtensions.cs (3)
310return builder.WithEndpoint("blob", endpoint => 327return builder.WithEndpoint("queue", endpoint => 345return builder.WithEndpoint("table", endpoint =>
Aspire.Hosting.Azure.Tests (49)
AzureContainerAppsTests.cs (4)
1074.WithEndpoint("http", e => e.Transport = "http2") 1283.WithEndpoint("foo", e => e.Transport = "quic"); 1323.WithEndpoint("ep1", e => e.IsExternal = true); 3074redis.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 (2)
79.WithEndpoint("http", e => 258.WithEndpoint("https", 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)
2694.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)); 408e.WithEndpoint("blob", e => e.AllocatedEndpoint = new(e, "localhost", 10000)); 409e.WithEndpoint("queue", e => e.AllocatedEndpoint = new(e, "localhost", 10001)); 410e.WithEndpoint("table", e => e.AllocatedEndpoint = new(e, "localhost", 10002));
BicepUtilitiesTests.cs (1)
39.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)
225.WithEndpoint("https", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 7443), createIfNotExists: false)
WithBlazorAppTests.cs (1)
343.WithEndpoint("https", endpoint => endpoint.AllocatedEndpoint = new(endpoint, "localhost", 7443), createIfNotExists: false);
Aspire.Hosting.Browsers.Tests (33)
BrowserLogsBuilderExtensionsTests.cs (33)
34.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 88.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 143.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 179.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 212.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 289.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 316.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 340.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 366.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 388.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 409.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 433.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 469.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 512.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 552.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 591.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 636.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 676.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 686.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8081)) 726.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 780.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 824.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 864.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 937.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 993.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1078.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1151.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1207.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1267.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1331.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1387.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1522.WithEndpoint("http", endpoint => endpoint.AllocatedEndpoint = new AllocatedEndpoint(endpoint, "localhost", 8080)) 1590.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)
45.WithEndpoint("http", e => e.IsExternal = true) 64return builder.WithEndpoint("http", e =>
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)
1324builder.WithEndpoint("http", e => e.TargetPort = 5000, createIfNotExists: true); 2170resourceBuilder.WithEndpoint("http", ep => ep.UriScheme = "https");
Aspire.Hosting.JavaScript.Tests (1)
AddNodeAppTests.cs (1)
566.WithEndpoint("http", e =>
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
186return 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)
45.WithEndpoint("http", e => e.IsExternal = true) 74return builder.WithEndpoint("http", e => 107builder = builder.WithEndpoint("otlp-grpc", e => e.Port = grpcPort); 112builder = 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)); 99.WithEndpoint("grpc", e =>
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
162.WithEndpoint(MongoDBServerResource.PrimaryEndpointName, endpoint => endpoint.TlsEnabled = true) 358return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.MongoDB.Tests (13)
AddMongoDBTests.cs (6)
98.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 168.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)) 336.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 404.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 432.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 501.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)
122.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 43210));
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
406return 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 => 681return 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)
329resourceBuilder.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)); 179.WithEndpoint("grpc", e => 184.WithEndpoint("http", e => 269.WithEndpoint("grpc", e => 274.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)
198.WithEndpoint(RedisResource.PrimaryEndpointName, e => 447resourceBuilder.WithEndpoint("http", ep => ep.UriScheme = "https"); 497return builder.WithEndpoint("http", endpoint => 514return builder.WithEndpoint("http", endpoint => 719return 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)
321return builder.WithEndpoint(SqlServerServerResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.SqlServer.Tests (4)
AddSqlServerTests.cs (3)
86.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433)); 107.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433)) 273.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 1433));
SqlServerReplCommandTests.cs (1)
42.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)
61.WithEndpoint("http", e =>
Dcp\DcpExecutorTests.cs (1)
4709.WithEndpoint("customendpoint", (endpoint) =>
DistributedApplicationTests.cs (8)
1685testProgram.ServiceABuilder.WithReplicas(2).WithEndpoint("http", endpoint => 1701testProgram.ServiceABuilder.WithEndpoint("http", endpoint => 1726.WithEndpoint("http", e => 1763.WithEndpoint("http", e => 1769.WithEndpoint("https", e => 1833var redis = builder.AddRedis($"{testName}-redis", port).WithEndpoint("tcp", endpoint => 1839var redisNoPort = builder.AddRedis($"{testName}-redisNoPort").WithEndpoint("tcp", endpoint => 1989var 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 => 283.WithEndpoint("http", ep => ep.AllocatedEndpoint = new(ep, "localhost", 8001, EndpointBindingMode.SingleAddress, "{{ targetPort }}", KnownNetworkIdentifiers.LocalhostNetwork));
ProjectResourceTests.cs (14)
414.WithEndpoint("http", e => 418.WithEndpoint("https", e => 422.WithEndpoint("http2", e => 426.WithEndpoint("dontinjectme", e => 457.WithEndpoint("http", e => 461.WithEndpoint("https", e => 465.WithEndpoint("http2", e => 469.WithEndpoint("dontinjectme", e => 516.WithEndpoint("http", e => 546builder.WithEndpoint(q, e => 689.WithEndpoint("ep", e => 696.WithEndpoint("ep", e => 729.WithEndpoint("http", e => 735.WithEndpoint("https", e =>
PublishAsDockerfileTests.cs (1)
315.WithEndpoint("http", e =>
ResourceDependencyTests.cs (1)
69.WithEndpoint("http", endpoint =>
WithEndpointTests.cs (8)
167.WithEndpoint("mybinding", endpoint => 205.WithEndpoint("mybinding", endpoint => 240.WithEndpoint("mybinding", endpoint => 277.WithEndpoint("mybinding", endpoint => 295.WithEndpoint("mybinding", endpoint => 311var projectA = builder.AddProject<ProjectA>("projecta").WithEndpoint("mybinding", endpoint => 802.WithEndpoint("https", e => e.TargetHost = "example.localhost", createIfNotExists: false) 836.WithEndpoint("https", e => e.TargetHost = host, createIfNotExists: false)
WithEnvironmentTests.cs (5)
47.WithEndpoint("mybinding", e => 229.WithEndpoint("primary", ep => 280.WithEndpoint("primary", ep => 306.WithEndpoint("primary", ep => 446.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)
23.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 47.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 67.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 94.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 140.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 144.WithEndpoint("myconflictingbinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 168.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 172.WithEndpoint("mynonconflictingbinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 196.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 198.WithEndpoint("mybinding2", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 226.WithEndpoint("mybinding", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 228.WithEndpoint("mybinding2", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)); 258.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 280.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 1120.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 1122.WithEndpoint("management", e => 1149.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 1151.WithEndpoint("management", e => 1178.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 1180.WithEndpoint("management", e => 1219.WithEndpoint("api", e => e.ExcludeReferenceEndpoint = true); 1233.WithEndpoint("management", e => e.ExcludeReferenceEndpoint = true); 1250.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 443)); 1268.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 8080)) 1270.WithEndpoint("prometheus", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 9090)); 1288.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)
66.WithEndpoint("https", ep => 126return builder.WithEndpoint("http", endpoint => 146return 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 =>