281 references to WithEndpoint
Aspire.Hosting (8)
ProjectResourceBuilderExtensions.cs (5)
673builder.WithEndpoint(schemeAsEndpointName ?? endpoint.EndpointName, e => 742builder.WithEndpoint(endpointName, e => 830builder.WithEndpoint(scheme, e => 1013cb.WithEndpoint("http", e => e.TargetPort ??= 8080, createIfNotExists: false); 1014cb.WithEndpoint("https", e => e.TargetPort ??= 8080, createIfNotExists: false);
ResourceBuilderExtensions.cs (3)
1438/// The <see cref="WithEndpoint{T}(IResourceBuilder{T}, string, Action{EndpointAnnotation}, bool)"/> method allows 1504return builder.WithEndpoint(endpointName, endpoint => callback(new EndpointUpdateContext(endpoint)), createIfNotExists); 1539return 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) 208builder.WithEndpoint("emulator", ep => 297return builder.WithEndpoint("emulator", endpoint => 492var result = builder.WithEndpoint(endpointName: KnownUrls.DataExplorer.EndpointName, endpoint => 513builder.WithEndpoint(KnownUrls.DataExplorer.EndpointName, 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 (48)
AzureContainerAppsTests.cs (4)
1018.WithEndpoint("http", e => e.Transport = "http2") 1227.WithEndpoint("foo", e => e.Transport = "quic"); 1267.WithEndpoint("ep1", e => e.IsExternal = true); 3018redis.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)); 1133e.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))
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)
36.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)
205.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)
42.WithEndpoint("http", e => e.IsExternal = true) 61return 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 (2)
JavaScriptHostingExtensions.cs (2)
941builder.WithEndpoint("http", e => e.TargetPort = 5000, createIfNotExists: true); 1625resourceBuilder.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)
165return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.Kafka.Tests (5)
AddKafkaTests.cs (5)
62.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 119.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 137.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 188.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)); 209.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)
41.WithEndpoint("http", e => e.IsExternal = true) 70return builder.WithEndpoint("http", e => 103builder = builder.WithEndpoint("otlp-grpc", e => e.Port = grpcPort); 108builder = builder.WithEndpoint("otlp-http", e => e.Port = httpPort);
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
61.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 (1)
MongoDBBuilderExtensions.cs (1)
193return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.MongoDB.Tests (3)
AddMongoDBTests.cs (3)
93.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017)) 163.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3000)) 312.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27017))
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
335return builder.WithEndpoint("http", endpoint =>
Aspire.Hosting.MySql.Tests (7)
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)) 240mysql.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 268mysql1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 269mysql2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host3")); 360.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 376.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 3306))
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)
253return builder.WithEndpoint("http", endpoint => 270return builder.WithEndpoint("http", endpoint => 603return builder.WithEndpoint(PostgresServerResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.PostgreSQL.Tests (12)
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 => 488pg1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 489pg2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host2")); 549pg1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 550pg2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host2")); 690.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 704.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 718.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 =>
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
329resourceBuilder.WithEndpoint("http", ep => ep.UriScheme = "https");
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
76.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 => 223.WithEndpoint("grpc", e => 228.WithEndpoint("http", e =>
Aspire.Hosting.RabbitMQ.Tests (1)
AddRabbitMQTests.cs (1)
98.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 27011));
Aspire.Hosting.Redis (5)
RedisBuilderExtensions.cs (5)
196.WithEndpoint(RedisResource.PrimaryEndpointName, e => 392resourceBuilder.WithEndpoint("http", ep => ep.UriScheme = "https"); 412return builder.WithEndpoint("http", endpoint => 429return builder.WithEndpoint("http", endpoint => 634return builder.WithEndpoint(RedisResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.Redis.Tests (13)
AddRedisTests.cs (13)
129.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)); 279redis1.WithEndpoint("tcp", e => 284redis2.WithEndpoint("tcp", e => 289redis3.WithEndpoint("tcp", e => 445.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 486redis.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 512redis.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 532redis1.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 533redis2.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5002, "host2")); 736.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 5001)); 758.WithEndpoint("tcp", e => 874redis.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 6379)); 918.WithEndpoint("tcp", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 6379));
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)
255return builder.WithEndpoint(SqlServerServerResource.PrimaryEndpointName, endpoint =>
Aspire.Hosting.SqlServer.Tests (3)
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));
Aspire.Hosting.Tests (78)
ApplicationModel\EndpointHostHelpersTests.cs (2)
220.WithEndpoint("primary", ep => 244.WithEndpoint("primary", ep =>
ContainerTunnelTests.cs (1)
57.WithEndpoint("http", e =>
Dcp\DcpExecutorTests.cs (1)
4223.WithEndpoint("customendpoint", (endpoint) =>
DistributedApplicationTests.cs (8)
1674testProgram.ServiceABuilder.WithReplicas(2).WithEndpoint("http", endpoint => 1690testProgram.ServiceABuilder.WithEndpoint("http", endpoint => 1715.WithEndpoint("http", e => 1752.WithEndpoint("http", e => 1758.WithEndpoint("https", e => 1822var redis = builder.AddRedis($"{testName}-redis", port).WithEndpoint("tcp", endpoint => 1828var redisNoPort = builder.AddRedis($"{testName}-redisNoPort").WithEndpoint("tcp", endpoint => 1978var 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)
413.WithEndpoint("http", e => 417.WithEndpoint("https", e => 421.WithEndpoint("http2", e => 425.WithEndpoint("dontinjectme", e => 456.WithEndpoint("http", e => 460.WithEndpoint("https", e => 464.WithEndpoint("http2", e => 468.WithEndpoint("dontinjectme", e => 515.WithEndpoint("http", e => 545builder.WithEndpoint(q, e => 688.WithEndpoint("ep", e => 695.WithEndpoint("ep", e => 728.WithEndpoint("http", e => 734.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)); 820.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 822.WithEndpoint("management", e => 849.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 851.WithEndpoint("management", e => 878.WithEndpoint("api", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 2000)) 880.WithEndpoint("management", e => 919.WithEndpoint("api", e => e.ExcludeReferenceEndpoint = true); 933.WithEndpoint("management", e => e.ExcludeReferenceEndpoint = true); 950.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 443)); 968.WithEndpoint("http", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 8080)) 970.WithEndpoint("prometheus", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 9090)); 988.WithEndpoint("data", e => e.AllocatedEndpoint = new AllocatedEndpoint(e, "localhost", 8080));
Aspire.Hosting.Valkey.Tests (2)
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));
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 =>