116 references to AddProject
Aspire.Hosting (6)
ProjectResourceBuilderExtensions.cs (6)
31/// This overload of the <see cref="AddProject{TProject}(IDistributedApplicationBuilder, string)"/> method takes 82/// <inheritdoc cref="AddProject(IDistributedApplicationBuilder, string)" path="/remarks/para[@name='kestrel']" /> 114/// This overload of the <see cref="AddProject{TProject}(IDistributedApplicationBuilder, string)"/> method takes 129/// <inheritdoc cref="AddProject(IDistributedApplicationBuilder, string)" path="/remarks/para[@name='kestrel']" /> 167/// <inheritdoc cref="AddProject(IDistributedApplicationBuilder, string)" path="/remarks/para[@name='kestrel']" /> 202/// This overload of the <see cref="AddProject{TProject}(IDistributedApplicationBuilder, string)"/> method takes
Aspire.Hosting.Tests (59)
Dashboard\DashboardResourceTests.cs (1)
505builder.AddProject<DashboardProject>(KnownResourceNames.AspireDashboard);
Dcp\ApplicationExecutorTests.cs (5)
56var resource = builder.AddProject<Projects.ServiceA>("ServiceA") 416builder.AddProject<Projects.ServiceA>("ServiceA") 652builder.AddProject<Projects.ServiceA>("ServiceA") 700builder.AddProject<Projects.ServiceA>("ServiceA") 978var project = builder.AddProject<TestProject>("project");
DistributedApplicationTests.cs (1)
801var servicea = builder.AddProject<Projects.ServiceA>("servicea")
ProjectResourceTests.cs (8)
271var ex = Assert.Throws<DistributedApplicationException>(() => appBuilder.AddProject<TestProject>("projectName")); 394appBuilder.AddProject<TestProjectWithLaunchSettings>("projectName") 419var builder = appBuilder.AddProject<TestProjectWithManyAppUrlsInLaunchSettings>("projectName"); 448appBuilder.AddProject<Projects.ServiceA>("projectName").DisableForwardedHeaders(); 467var project = appBuilder.AddProject<TestProjectWithLaunchSettings>("projectName"); 520appBuilder.AddProject<TestProjectWithLaunchSettings>("projectName") 578var project = appBuilder.AddProject<TestProjectWithLaunchSettings>("projectName") 601appBuilder.AddProject<TestProjectWithWildcardUrlInLaunchSettings>("projectName")
Schema\SchemaTests.cs (3)
124builder.AddProject<Projects.ServiceA>("project"); 136builder.AddProject<Projects.ServiceA>("project") 146builder.AddProject<Projects.ServiceA>("project")
WithEndpointTests.cs (11)
22var projectA = builder.AddProject<ProjectA>("projecta") 39var projectA = builder.AddProject<ProjectA>("projecta") 74var projectA = builder.AddProject<ProjectA>("projecta") 111var projectA = builder.AddProject<ProjectA>("projecta") 129var projectA = builder.AddProject<ProjectA>("projecta") 146var projectA = builder.AddProject<ProjectA>("projecta").WithEndpoint("mybinding", endpoint => 163builder.AddProject<ProjectA>("projecta") 178builder.AddProject<ProjectA>("projecta") 192builder.AddProject<ProjectB>("projectb") 459var project = builder.AddProject<TestProject>("proj") 521var project = builder.AddProject<TestProject>("proj")
WithEnvironmentTests.cs (9)
43var projectA = builder.AddProject<ProjectA>("project") 50var projectB = builder.AddProject<ProjectB>("projectB") 63var project = builder.AddProject<ProjectA>("projectA") 79var project = builder.AddProject<ProjectA>("projectA") 93var projectA = builder.AddProject<ProjectA>("projectA").WithEnvironment("myName", () => environmentValue); 112var projectA = builder.AddProject<ProjectA>("projectA") 127var projectA = builder.AddProject<ProjectA>("projectA") 143var projectA = builder.AddProject<ProjectA>("projectA") 161var projectA = builder.AddProject<ProjectA>("projectA")
WithReferenceTests.cs (21)
21var projectA = builder.AddProject<ProjectA>("projecta") 26var projectB = builder.AddProject<ProjectB>("b").WithReference(projectA.GetEndpoint(endpointName)); 39var projectA = builder.AddProject<ProjectA>("projecta") 47var projectB = builder.AddProject<ProjectB>("projectb") 64var projectA = builder.AddProject<ProjectA>("projecta") 72var projectB = builder.AddProject<ProjectB>("projectb") 89var projectA = builder.AddProject<ProjectA>("projecta") 96var projectB = builder.AddProject<ProjectB>("projectb") 111var projectA = builder.AddProject<ProjectA>("projecta") 118var projectB = builder.AddProject<ProjectB>("projectb") 134var projectB = builder.AddProject<ProjectB>("projectb").WithReference(resource, optional: false); 150var projectB = builder.AddProject<ProjectB>("projectB") 166var projectB = builder.AddProject<ProjectB>("projectb") 187var projectB = builder.AddProject<ProjectB>("projectb") 203var projectB = builder.AddProject<ProjectB>("projectb") 219var projectB = builder.AddProject<ProjectB>("projectb") 238var projectB = builder.AddProject<ProjectB>("projectb") 260var projectB = builder.AddProject<ProjectB>("projectb") 276Assert.Throws<InvalidOperationException>(() => builder.AddProject<ProjectA>("projecta").WithReference("petstore", new Uri("petstore.swagger.io", UriKind.Relative))); 284Assert.Throws<InvalidOperationException>(() => builder.AddProject<ProjectA>("projecta").WithReference("petstore", new Uri("https://petstore.swagger.io/v2"))); 292var projectA = builder.AddProject<ProjectA>("projecta")
AzureContainerApps.AppHost (1)
Program.cs (1)
34builder.AddProject<Projects.AzureContainerApps_ApiService>("api")
AzureFunctionsEndToEnd.AppHost (1)
Program.cs (1)
21builder.AddProject<Projects.AzureFunctionsEndToEnd_ApiService>("apiservice")
AzureSearch.AppHost (1)
Program.cs (1)
8builder.AddProject<Projects.AzureSearch_ApiService>("api")
AzureStorageEndToEnd.AppHost (1)
Program.cs (1)
14builder.AddProject<Projects.AzureStorageEndToEnd_ApiService>("api")
BicepSample.AppHost (1)
Program.cs (1)
62builder.AddProject<Projects.BicepSample_ApiService>("api")
BrowserTelemetry.AppHost (1)
Program.cs (1)
6builder.AddProject<Projects.BrowserTelemetry_Web>("web")
CdkSample.AppHost (1)
Program.cs (1)
101builder.AddProject<Projects.CdkSample_ApiService>("api")
CosmosEndToEnd.AppHost (1)
Program.cs (1)
10builder.AddProject<Projects.CosmosEndToEnd_ApiService>("api")
Dapr.AppHost (3)
Program.cs (3)
12builder.AddProject<Projects.DaprServiceA>("servicea") 17builder.AddProject<Projects.DaprServiceB>("serviceb") 22builder.AddProject<Projects.DaprServiceC>("servicec")
DatabaseMigration.AppHost (2)
Program.cs (2)
8builder.AddProject<Projects.DatabaseMigration_ApiService>("api") 12builder.AddProject<Projects.DatabaseMigration_MigrationService>("migration")
Elasticsearch.AppHost (1)
Program.cs (1)
9builder.AddProject<Projects.Elasticsearch_ApiService>("elasticsearch-apiservice")
EventHubs.AppHost (2)
Program.cs (2)
12builder.AddProject<Projects.EventHubsConsumer>("consumer") 16builder.AddProject<Projects.EventHubsApi>("api")
KafkaBasic.AppHost (2)
Program.cs (2)
9builder.AddProject<Projects.Producer>("producer") 13builder.AddProject<Projects.Consumer>("consumer")
Keycloak.AppHost (2)
Program.cs (2)
7var apiService = builder.AddProject<Projects.Keycloak_ApiService>("apiservice") 10builder.AddProject<Projects.Keycloak_Web>("webfrontend")
MilvusPlayground.AppHost (1)
Program.cs (1)
7builder.AddProject<Projects.MilvusPlayground_ApiService>("apiservice")
Mongo.AppHost (1)
Program.cs (1)
10builder.AddProject<Projects.Mongo_ApiService>("api")
MySqlDb.AppHost (1)
Program.cs (1)
13builder.AddProject<Projects.MySql_ApiService>("apiservice")
Nats.AppHost (2)
Program.cs (2)
6builder.AddProject<Projects.Nats_ApiService>("api") 11builder.AddProject<Projects.Nats_Backend>("backend")
OpenAIEndToEnd.AppHost (1)
Program.cs (1)
11builder.AddProject<Projects.OpenAIEndToEnd_WebStory>("webstory")
OracleEndToEnd.AppHost (1)
Program.cs (1)
10builder.AddProject<Projects.OracleEndToEnd_ApiService>("api")
Orleans.AppHost (2)
Program.cs (2)
18builder.AddProject<Projects.OrleansServer>("silo") 22builder.AddProject<Projects.OrleansClient>("frontend")
ParameterEndToEnd.AppHost (1)
Program.cs (1)
24builder.AddProject<Projects.ParameterEndToEnd_ApiService>("api")
PostgresEndToEnd.AppHost (1)
Program.cs (1)
26builder.AddProject<Projects.PostgresEndToEnd_ApiService>("api")
ProxylessEndToEnd.AppHost (1)
Program.cs (1)
11builder.AddProject<Projects.ProxylessEndToEnd_ApiService>("api")
Qdrant.AppHost (1)
Program.cs (1)
9builder.AddProject<Projects.Qdrant_ApiService>("apiservice")
Redis.AppHost (1)
Program.cs (1)
14builder.AddProject<Projects.Redis_ApiService>("apiservice")
Seq.AppHost (1)
Program.cs (1)
8builder.AddProject<Projects.Seq_ApiService>("api")
SignalR.AppHost (1)
Program.cs (1)
5builder.AddProject<Projects.SignalRWeb>("webfrontend")
SqlServerEndToEnd.AppHost (2)
Program.cs (2)
16var dbsetup = builder.AddProject<Projects.SqlServerEndToEnd_DbSetup>("dbsetup") 20builder.AddProject<Projects.SqlServerEndToEnd_ApiService>("api")
Stress.AppHost (1)
Program.cs (1)
57builder.AddProject<Projects.Stress_TelemetryService>("stress-telemetryservice");
TestingAppHost1.AppHost (2)
Program.cs (2)
9builder.AddProject<Projects.TestingAppHost1_MyWebApp>("mywebapp1") 13builder.AddProject<Projects.TestingAppHost1_MyWorker>("myworker1")
TestProject.AppHost (2)
TestProgram.cs (2)
64WorkerABuilder = AppBuilder.AddProject<Projects.WorkerA>("workera"); 68IntegrationServiceABuilder = AppBuilder.AddProject<Projects.IntegrationServiceA>("integrationservicea");
TestShop.AppHost (4)
Program.cs (4)
22var catalogDbApp = builder.AddProject<Projects.CatalogDb>("catalogdbapp") 25var catalogService = builder.AddProject<Projects.CatalogService>("catalogservice") 38builder.AddProject<Projects.MyFrontend>("frontend") 46builder.AddProject<Projects.ApiGateway>("apigateway")
WaitForSandbox.AppHost (3)
Program.cs (3)
17var dbsetup = builder.AddProject<Projects.WaitForSandbox_DbSetup>("dbsetup") 20var backend = builder.AddProject<Projects.WaitForSandbox_ApiService>("api") 27builder.AddProject<Projects.WaitFor_Frontend>("frontend")
WebPubSub.AppHost (1)
Program.cs (1)
5var web = builder.AddProject<Projects.WebPubSubWeb>("webfrontend")