1 write to AppBuilder
TestProject.AppHost (1)
TestProgram.cs (1)
57AppBuilder = builder;
56 references to AppBuilder
Aspire.Hosting.Tests (46)
DistributedApplicationTests.cs (34)
50testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 80testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 90testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 118testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 119testProgram.AppBuilder.Services.AddHealthChecks().AddCheck("dummy_healthcheck", () => HealthCheckResult.Unhealthy()); 162testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 183testProgram.AppBuilder.Services.TryAddLifecycleHook(callback1); 186testProgram.AppBuilder.Services.TryAddLifecycleHook(callback2); 188var lifecycleHookDescriptors = testProgram.AppBuilder.Services.Where(sd => sd.ServiceType == typeof(IDistributedApplicationLifecycleHook)); 200testProgram.AppBuilder.Services.AddLifecycleHook(sp => new CheckAllocatedEndpointsLifecycleHook(tcs)); 234testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 289testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 291testProgram.AppBuilder.AddContainer("redis-cli", "redis") 320testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 322testProgram.AppBuilder.AddContainer("redis0", "redis") 372testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 406testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 411testProgram.AppBuilder.AddContainer("redis0", "redis") 414testProgram.AppBuilder.AddNodeApp("nodeapp", "fakePath") 468testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 507testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 537testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 539testProgram.AppBuilder.AddContainer("redis-cli", "redis") 565testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 568testProgram.AppBuilder.AddContainer("redis-cli", "redis") 595testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 597testProgram.AppBuilder.AddContainer("redis-cli", "redis") 625testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 627testProgram.AppBuilder.AddContainer("redis-cli", "redis") 654testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 715testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 734testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 756testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 797testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper));
ManifestGenerationTests.cs (12)
23program.AppBuilder.AddParameter("x", secret: false); 40program.AppBuilder.AddParameter("x"); 57program.AppBuilder.AddParameter("x", secret: true); 140var resourceBuilder = program.AppBuilder.AddExecutable("program", "run program", "c:/", addExecutableArgs); 177program.AppBuilder.AddExecutable("program", "run program", "c:/"); 197program.AppBuilder.AddRedis("rediscontainer"); 216program.AppBuilder.AddRedis("rediscontainer"); 236program.AppBuilder.AddPostgres("postgrescontainer").AddDatabase("postgresdatabase"); 258program.AppBuilder.AddContainer("testresource", "testresource"); 277program.AppBuilder.Services.Configure<PublishingOptions>(options => 280options.OutputPath = program.AppBuilder.AppHostDirectory; 507program.AppBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, JsonDocumentManifestPublisher>("manifest");
TestProject.AppHost (10)
TestProgram.cs (10)
61ServiceABuilder = AppBuilder.AddProject("servicea", serviceAPath, launchProfileName: "http"); 62ServiceBBuilder = AppBuilder.AddProject<Projects.ServiceB>("serviceb", launchProfileName: "http"); 63ServiceCBuilder = AppBuilder.AddProject<Projects.ServiceC>("servicec", launchProfileName: "http"); 64WorkerABuilder = AppBuilder.AddProject<Projects.WorkerA>("workera"); 68IntegrationServiceABuilder = AppBuilder.AddProject<Projects.IntegrationServiceA>("integrationservicea"); 73var redis = AppBuilder.AddRedis("redis") 80var postgres = AppBuilder.AddPostgres("postgres") 88AppBuilder.Services.AddLifecycleHook<EndPointWriterHook>(); 89AppBuilder.Services.AddHttpClient(); 126return App ??= AppBuilder.Build();