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