Implemented interface member:
property
Services
Aspire.Hosting.IDistributedApplicationBuilder.Services
10 references to Services
Aspire.Hosting.Testing (5)
DistributedApplicationFactory.cs (5)
234
var services = applicationBuilder.
Services
;
393
var hostDescriptor = applicationBuilder.
Services
.Single(s => s.ServiceType == typeof(IHost) && s.ServiceKey is null);
394
applicationBuilder.
Services
.Remove(hostDescriptor);
404
applicationBuilder.
Services
.Add(interceptedDescriptor);
407
applicationBuilder.
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());
128
public IServiceCollection Services => _innerBuilder.
Services
;