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