Implemented interface member:
property
Services
Aspire.Hosting.IDistributedApplicationBuilder.Services
65 references to Services
Aspire.Hosting.Azure.Tests (5)
AzureContainerAppsTests.cs (1)
1283builder.Services.Configure<AzureProvisioningOptions>(options => options.ProvisioningBuildOptions.InfrastructureResolvers.Insert(0, new MyResourceNamePropertyResolver()));
AzureCosmosDBEmulatorFunctionalTests.cs (1)
30builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureEventHubsExtensionsTests.cs (1)
30builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureResourceOptionsTests.cs (1)
29builder.Services.Configure<AzureProvisioningOptions>(options =>
AzureStorageEmulatorFunctionalTests.cs (1)
26builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Containers.Tests (22)
WithDockerfileTests.cs (22)
24builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 54builder.Services.AddHostedService<ResourceLoggerForwarderService>(); 55builder.Services.AddLogging(logging => 92builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 126builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 344builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 415builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 484builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 513builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 526builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 551builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 565builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 580builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 594builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 613builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 629builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 644builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 660builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 675builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 691builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 706builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 722builder.Services.AddLogging(b => b.AddXunit(testOutputHelper));
Aspire.Hosting.Elasticsearch.Tests (1)
ElasticsearchFunctionalTests.cs (1)
214builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Garnet.Tests (1)
GarnetFunctionalTests.cs (1)
27builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Kafka.Tests (1)
KafkaFunctionalTests.cs (1)
28builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.MongoDB.Tests (1)
MongoDbFunctionalTests.cs (1)
39builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
35builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
330builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Oracle.Tests (1)
OracleFunctionalTests.cs (1)
358builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
38builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
230builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.RabbitMQ.Tests (1)
RabbitMQFunctionalTests.cs (1)
29builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
33builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
29builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Tests (25)
Codespaces\CodespacesUrlRewriterTests.cs (1)
22builder.Services.AddLogging(logging =>
Dashboard\DashboardResourceTests.cs (10)
37builder.Services.Configure<DcpOptions>(o => 85builder.Services.AddSingleton<IDashboardEndpointProvider, MockDashboardEndpointProvider>(); 162builder.Services.Configure<DcpOptions>(o => 191builder.Services.AddSingleton<IDashboardEndpointProvider, MockDashboardEndpointProvider>(); 228builder.Services.AddSingleton<IDashboardEndpointProvider, MockDashboardEndpointProvider>(); 260builder.Services.AddSingleton<IDashboardEndpointProvider, MockDashboardEndpointProvider>(); 295builder.Services.AddSingleton<IDashboardEndpointProvider, MockDashboardEndpointProvider>(); 338builder.Services.AddSingleton<IDashboardEndpointProvider, MockDashboardEndpointProvider>(); 430builder.Services.AddLogging(b => 438builder.Services.Configure<DcpOptions>(o =>
DistributedApplicationTests.cs (1)
864builder.Services.TryAddLifecycleHook<KubernetesTestLifecycleHook>();
Health\ResourceHealthCheckServiceTests.cs (8)
53builder.Services.AddHealthChecks().AddCheck("healthcheck_a", () => HealthCheckResult.Healthy()); 91builder.Services.AddHealthChecks().AddCheck("resource_check", () => 138builder.Services.AddSingleton<TimeProvider>(timeProvider); 139builder.Services.AddHealthChecks().AddAsyncCheck("resource_check", async () => 210builder.Services.AddHealthChecks().AddCheck("resource_check", (check) => 250builder.Services.AddHealthChecks().AddCheck("parent_test", () => 309builder.Services.AddHealthChecks().AddCheck("parent_test", () => 361builder.Services.AddHealthChecks().AddCheck("parent_test", () => HealthCheckResult.Healthy());
HealthCheckTests.cs (2)
69builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () => 108builder.Services.AddLogging(b => {
Utils\TestDistributedApplicationBuilder.cs (3)
110Services.AddXunitLogging(testOutputHelper); 111Services.AddHostedService<ResourceLoggerForwarderService>(); 112Services.AddLogging(builder =>
Aspire.Hosting.Valkey.Tests (1)
ValkeyFunctionalTests.cs (1)
204builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>