1 write to AppBuilder
TestProject.AppHost (1)
TestProgram.cs (1)
57AppBuilder = builder;
57 references to AppBuilder
Aspire.Hosting.Tests (46)
DistributedApplicationTests.cs (32)
45testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 75testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 85testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 114testProgram.AppBuilder.Services.AddLifecycleHook((sp) => 135testProgram.AppBuilder.Services.TryAddLifecycleHook(callback1); 138testProgram.AppBuilder.Services.TryAddLifecycleHook(callback2); 140var lifecycleHookDescriptors = testProgram.AppBuilder.Services.Where(sd => sd.ServiceType == typeof(IDistributedApplicationLifecycleHook)); 152testProgram.AppBuilder.Services.AddLifecycleHook(sp => new CheckAllocatedEndpointsLifecycleHook(tcs)); 186testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 241testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 243testProgram.AppBuilder.AddContainer("redis-cli", "redis") 272testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 274testProgram.AppBuilder.AddContainer("redis0", "redis") 312testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 346testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 351testProgram.AppBuilder.AddContainer("redis0", "redis") 354testProgram.AppBuilder.AddNodeApp("nodeapp", "fakePath") 408testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 447testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 477testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 479testProgram.AppBuilder.AddContainer("redis-cli", "redis") 505testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 508testProgram.AppBuilder.AddContainer("redis-cli", "redis") 535testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 537testProgram.AppBuilder.AddContainer("redis-cli", "redis") 565testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 567testProgram.AppBuilder.AddContainer("redis-cli", "redis") 594testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 655testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 674testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 696testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper)); 737testProgram.AppBuilder.Services.AddLogging(b => b.AddXunit(_testOutputHelper));
ManifestGenerationTests.cs (14)
23program.AppBuilder.AddParameter("x", secret: false); 40program.AppBuilder.AddParameter("x"); 57program.AppBuilder.AddParameter("x", secret: true); 114program.AppBuilder 118program.AppBuilder 177var resourceBuilder = program.AppBuilder.AddExecutable("program", "run program", "c:/", addExecutableArgs); 214program.AppBuilder.AddExecutable("program", "run program", "c:/"); 234program.AppBuilder.AddRedis("rediscontainer"); 253program.AppBuilder.AddRedis("rediscontainer"); 273program.AppBuilder.AddPostgres("postgrescontainer").AddDatabase("postgresdatabase"); 295program.AppBuilder.AddContainer("testresource", "testresource"); 314program.AppBuilder.Services.Configure<PublishingOptions>(options => 317options.OutputPath = program.AppBuilder.AppHostDirectory; 544program.AppBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, JsonDocumentManifestPublisher>("manifest");
TestProject.AppHost (11)
TestProgram.cs (11)
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.AddHostedService<ResourceLoggerForwarderService>(); 89AppBuilder.Services.AddLifecycleHook<EndPointWriterHook>(); 90AppBuilder.Services.AddHttpClient(); 127return App ??= AppBuilder.Build();