Implemented interface member:
property
Services
Aspire.Hosting.IDistributedApplicationBuilder.Services
66 references to Services
Aspire.Hosting.Azure.Tests (7)
AzureContainerAppsTests.cs (1)
1494builder.Services.Configure<AzureProvisioningOptions>(options => options.ProvisioningBuildOptions.InfrastructureResolvers.Insert(0, new MyResourceNamePropertyResolver()));
AzureCosmosDBEmulatorFunctionalTests.cs (1)
33builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureEventHubsExtensionsTests.cs (1)
32builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureResourceOptionsTests.cs (1)
29builder.Services.Configure<AzureProvisioningOptions>(options =>
AzureServiceBusExtensionsTests.cs (1)
193builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureSignalREmulatorFunctionalTest.cs (1)
48builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
AzureStorageEmulatorFunctionalTests.cs (1)
26builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Containers.Tests (16)
WithDockerfileTests.cs (16)
24builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 54builder.Services.AddLogging(logging => 91builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 125builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 343builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 414builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 483builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 512builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 531builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 547builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 562builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 578builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 593builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 609builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 624builder.Services.AddLogging(b => b.AddXunit(testOutputHelper)); 640builder.Services.AddLogging(b => b.AddXunit(testOutputHelper));
Aspire.Hosting.Elasticsearch.Tests (1)
ElasticsearchFunctionalTests.cs (1)
244builder.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)
328builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Oracle.Tests (1)
OracleFunctionalTests.cs (1)
357builder.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)
34builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
29builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>
Aspire.Hosting.Tests (30)
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)
979builder.Services.TryAddLifecycleHook<KubernetesTestLifecycleHook>();
Health\ResourceHealthCheckServiceTests.cs (13)
26builder.Services.AddLogging(logging => logging.AddProvider(new TestLoggerProvider(testSink))); 62builder.Services.AddHealthChecks().AddAsyncCheck("healthcheck_a", async () => 106builder.Services.AddHealthChecks().AddCheck("healthcheck_a", () => 176builder.Services.AddLogging(logging => logging.AddProvider(new TestLoggerProvider(testSink))); 178builder.Services.AddHealthChecks().AddCheck("resource_check", () => 217builder.Services.AddLogging(logging => logging.AddProvider(new TestLoggerProvider(testSink))); 219builder.Services.AddHealthChecks().AddCheck("resource_check", () => 265builder.Services.AddSingleton<TimeProvider>(timeProvider); 266builder.Services.AddHealthChecks().AddAsyncCheck("resource_check", async () => 337builder.Services.AddHealthChecks().AddCheck("resource_check", (check) => 377builder.Services.AddHealthChecks().AddCheck("parent_test", () => 436builder.Services.AddHealthChecks().AddCheck("parent_test", () => 491builder.Services.AddHealthChecks().AddCheck("parent_test", () => HealthCheckResult.Healthy());
HealthCheckTests.cs (2)
69builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () => 108builder.Services.AddLogging(b => {
Utils\TestDistributedApplicationBuilder.cs (2)
110Services.AddXunitLogging(testOutputHelper); 111Services.AddLogging(builder => builder.AddFilter("Aspire.Hosting", LogLevel.Trace));
WaitForTests.cs (1)
265builder.Services.AddLogging(b =>
Aspire.Hosting.Valkey.Tests (1)
ValkeyFunctionalTests.cs (1)
204builder.Services.AddHealthChecks().AddAsyncCheck("blocking_check", () =>