Implemented interface member:
property
Services
Aspire.Hosting.IDistributedApplicationBuilder.Services
10 references to Services
Aspire.Hosting.Testing (5)
DistributedApplicationFactory.cs (5)
234var services = applicationBuilder.Services; 393var hostDescriptor = applicationBuilder.Services.Single(s => s.ServiceType == typeof(IHost) && s.ServiceKey is null); 394applicationBuilder.Services.Remove(hostDescriptor); 404applicationBuilder.Services.Add(interceptedDescriptor); 407applicationBuilder.Services.AddSingleton<IHost>(sp => new ObservedHost(sp.GetRequiredKeyedService<IHost>(this), this));
Aspire.Hosting.Tests (5)
Utils\TestDistributedApplicationBuilder.cs (5)
74_innerBuilder.Services.Configure<DashboardOptions>(o => 81_innerBuilder.Services.AddSingleton<ApplicationExecutorProxy>(sp => new ApplicationExecutorProxy(sp.GetRequiredService<ApplicationExecutor>())); 83_innerBuilder.Services.AddHttpClient(); 84_innerBuilder.Services.ConfigureHttpClientDefaults(http => http.AddStandardResilienceHandler()); 128public IServiceCollection Services => _innerBuilder.Services;