2154 references to GetRequiredService
Aspire.Azure.AI.OpenAI (3)
Aspire.Azure.AI.OpenAI.Tests (13)
Aspire.Azure.Data.Tables (2)
Aspire.Azure.Data.Tables.Tests (4)
Aspire.Azure.Messaging.EventHubs (2)
Aspire.Azure.Messaging.ServiceBus (2)
Aspire.Azure.Messaging.ServiceBus.Tests (5)
Aspire.Azure.Messaging.WebPubSub (2)
Aspire.Azure.Messaging.WebPubSub.Tests (5)
Aspire.Azure.Search.Documents (2)
Aspire.Azure.Search.Documents.Tests (2)
Aspire.Azure.Security.KeyVault (2)
Aspire.Azure.Security.KeyVault.Tests (2)
Aspire.Azure.Storage.Blobs (2)
Aspire.Azure.Storage.Blobs.Tests (4)
Aspire.Azure.Storage.Queues (2)
Aspire.Azure.Storage.Queues.Tests (4)
Aspire.Components.Common.Tests (7)
Aspire.Confluent.Kafka (8)
Aspire.Confluent.Kafka.Tests (6)
Aspire.Dashboard (9)
Aspire.Dashboard.Components.Tests (23)
Aspire.Dashboard.Tests (2)
Aspire.Elastic.Clients.Elasticsearch (1)
Aspire.Elastic.Clients.Elasticsearch.Tests (4)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (10)
Aspire.Hosting.Azure.Tests (32)
Aspire.Hosting.Containers.Tests (9)
Aspire.Hosting.Dapr.Tests (2)
Aspire.Hosting.Elasticsearch.Tests (7)
Aspire.Hosting.Garnet.Tests (7)
Aspire.Hosting.Kafka.Tests (7)
Aspire.Hosting.Keycloak.Tests (1)
Aspire.Hosting.Milvus.Tests (6)
Aspire.Hosting.MongoDB.Tests (9)
Aspire.Hosting.MySql.Tests (19)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Nats.Tests (10)
Aspire.Hosting.Oracle.Tests (10)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.PostgreSQL.Tests (13)
Aspire.Hosting.Python.Tests (4)
Aspire.Hosting.Qdrant.Tests (8)
Aspire.Hosting.RabbitMQ.Tests (7)
Aspire.Hosting.Redis (1)
Aspire.Hosting.Redis.Tests (15)
Aspire.Hosting.SqlServer.Tests (10)
Aspire.Hosting.Testing (3)
Aspire.Hosting.Testing.Tests (9)
Aspire.Hosting.Tests (127)
Aspire.Hosting.Valkey.Tests (7)
Aspire.Keycloak.Authentication.Tests (8)
Aspire.Microsoft.Azure.Cosmos.Tests (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.Data.SqlClient.Tests (4)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (9)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (19)
Aspire.Milvus.Client (2)
Aspire.Milvus.Client.Tests (5)
Aspire.MongoDB.Driver (1)
Aspire.MongoDB.Driver.Tests (4)
Aspire.MySqlConnector (1)
Aspire.MySqlConnector.Tests (4)
Aspire.NATS.Net (4)
Aspire.NATS.Net.Tests (7)
Aspire.Npgsql (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (19)
Aspire.Npgsql.Tests (5)
Aspire.OpenAI (1)
Aspire.OpenAI.Tests (7)
Aspire.Oracle.EntityFrameworkCore.Tests (22)
Aspire.Playground.Tests (15)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (17)
Aspire.Qdrant.Client (2)
Aspire.Qdrant.Client.Tests (2)
Aspire.RabbitMQ.Client (3)
Aspire.RabbitMQ.Client.Tests (8)
Aspire.StackExchange.Redis (7)
Aspire.StackExchange.Redis.DistributedCaching (1)
Aspire.StackExchange.Redis.DistributedCaching.Tests (1)
Aspire.StackExchange.Redis.OutputCaching (1)
Aspire.StackExchange.Redis.OutputCaching.Tests (1)
Aspire.StackExchange.Redis.Tests (14)
Aspire.Workload.Tests (1)
BasicWebSite (3)
blazor-devserver (1)
CatalogDb (2)
CreateDefaultBuilderApp (1)
CreateDefaultBuilderOfTApp (2)
CustomEncryptorSample (2)
DatabaseMigration.MigrationService (1)
GenericHostWebSite (1)
HealthChecksSample (2)
Http3SampleApp (1)
InMemory.FunctionalTests (3)
InProcessWebSite (1)
IntegrationTestsWebsite (1)
Interop.FunctionalTests (6)
InteropClient (1)
IStartupInjectionAssemblyName (1)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Antiforgery.Test (3)
Microsoft.AspNetCore.AsyncState.Tests (3)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Core.Test (12)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
Microsoft.AspNetCore.Authentication.Test (21)
Microsoft.AspNetCore.Authorization.Policy (2)
Microsoft.AspNetCore.Authorization.Test (9)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (24)
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
Microsoft.AspNetCore.Components.Server (9)
Microsoft.AspNetCore.Components.Server.Tests (4)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (7)
Microsoft.AspNetCore.Components.WebAssembly.Server (4)
Microsoft.AspNetCore.Components.WebAssembly.Tests (12)
Microsoft.AspNetCore.Components.WebView (4)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (2)
Microsoft.AspNetCore.DataProtection.Extensions (1)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (2)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.Diagnostics (6)
Microsoft.AspNetCore.Diagnostics.Middleware (6)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (19)
Microsoft.AspNetCore.Diagnostics.Tests (4)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
Microsoft.AspNetCore.HeaderParsing (3)
Microsoft.AspNetCore.HeaderParsing.Tests (5)
Microsoft.AspNetCore.HeaderPropagation (3)
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
Microsoft.AspNetCore.Hosting (30)
Microsoft.AspNetCore.Hosting.Tests (47)
Microsoft.AspNetCore.Hosting.WindowsServices (1)
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (2)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (17)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (4)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Results (45)
Microsoft.AspNetCore.Http.Tests (5)
Microsoft.AspNetCore.HttpOverrides.Tests (2)
Microsoft.AspNetCore.Identity (16)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (48)
Microsoft.AspNetCore.Identity.FunctionalTests (9)
Microsoft.AspNetCore.Identity.InMemory.Test (7)
Microsoft.AspNetCore.Identity.Test (36)
Microsoft.AspNetCore.Identity.UI (1)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
Microsoft.AspNetCore.Mvc.Core (75)
Microsoft.AspNetCore.Mvc.Core.Test (17)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (16)
Microsoft.AspNetCore.Mvc.IntegrationTests (11)
Microsoft.AspNetCore.Mvc.Localization.Test (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.Razor (7)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
Microsoft.AspNetCore.Mvc.Razor.Test (8)
Microsoft.AspNetCore.Mvc.RazorPages (15)
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers (5)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
Microsoft.AspNetCore.Mvc.Test (2)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (26)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OpenApi.Tests (24)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.RateLimiting.Tests (2)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Routing (17)
Microsoft.AspNetCore.Routing.FunctionalTests (14)
Microsoft.AspNetCore.Routing.Microbenchmarks (13)
Microsoft.AspNetCore.Routing.Tests (21)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Microsoft.AspNetCore.Server.IISIntegration.Tests (5)
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (6)
Microsoft.AspNetCore.SignalR.Core (5)
Microsoft.AspNetCore.SignalR.Tests (54)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.SpaServices.Extensions (8)
Microsoft.AspNetCore.StaticAssets (9)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
Microsoft.AspNetCore.TestHost (2)
Microsoft.AspNetCore.TestHost.Tests (10)
Microsoft.AspNetCore.Testing (2)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.AspNetCore.Tests (35)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.DotNet.Helix.Sdk (6)
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
Microsoft.Extensions.AsyncState.Tests (2)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (20)
Microsoft.Extensions.Caching.MicroBenchmarks (2)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (4)
Microsoft.Extensions.Compliance.Redaction.Tests (7)
Microsoft.Extensions.Compliance.Testing (5)
Microsoft.Extensions.Compliance.Testing.Tests (11)
Microsoft.Extensions.DependencyInjection.Abstractions (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (13)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (8)
Microsoft.Extensions.Hosting (6)
Microsoft.Extensions.Hosting.Abstractions (1)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http (18)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (8)
Microsoft.Extensions.Http.Diagnostics.Tests (66)
Logging\HttpRequestReaderTest.cs (16)
77var reader = new HttpRequestReader(serviceProvider, options.ToOptionsMonitor(serviceKey), serviceProvider.GetRequiredService<IHttpRouteFormatter>(),
78serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext, serviceKey: serviceKey);
140var reader = new HttpRequestReader(serviceProvider, options.ToOptionsMonitor(), serviceProvider.GetRequiredService<IHttpRouteFormatter>(),
141serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext);
204serviceProvider.GetRequiredService<IHttpRouteFormatter>(), serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext);
279serviceProvider.GetRequiredService<IHttpRouteFormatter>(), serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext);
351serviceProvider.GetRequiredService<IHttpRouteFormatter>(), serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext);
409serviceProvider.GetRequiredService<IHttpRouteFormatter>(), serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext);
480serviceProvider.GetRequiredService<IHttpRouteFormatter>(), serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext);
547serviceProvider.GetRequiredService<IHttpRouteFormatter>(), serviceProvider.GetRequiredService<IHttpRouteParser>(), RequestMetadataContext);
Microsoft.Extensions.Http.Polly (6)
Microsoft.Extensions.Http.Polly.Tests (10)
Microsoft.Extensions.Http.Resilience (8)
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
Microsoft.Extensions.Http.Resilience.Tests (21)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.ML.Tests (2)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (21)
Microsoft.Extensions.Options (45)
OptionsBuilder.cs (45)
71new ConfigureNamedOptions<TOptions, TDep>(Name, sp.GetRequiredService<TDep>(), configureOptions));
92new ConfigureNamedOptions<TOptions, TDep1, TDep2>(Name, sp.GetRequiredService<TDep1>(), sp.GetRequiredService<TDep2>(), configureOptions));
117sp.GetRequiredService<TDep1>(),
118sp.GetRequiredService<TDep2>(),
119sp.GetRequiredService<TDep3>(),
147sp.GetRequiredService<TDep1>(),
148sp.GetRequiredService<TDep2>(),
149sp.GetRequiredService<TDep3>(),
150sp.GetRequiredService<TDep4>(),
180sp.GetRequiredService<TDep1>(),
181sp.GetRequiredService<TDep2>(),
182sp.GetRequiredService<TDep3>(),
183sp.GetRequiredService<TDep4>(),
184sp.GetRequiredService<TDep5>(),
220new PostConfigureOptions<TOptions, TDep>(Name, sp.GetRequiredService<TDep>(), configureOptions));
241new PostConfigureOptions<TOptions, TDep1, TDep2>(Name, sp.GetRequiredService<TDep1>(), sp.GetRequiredService<TDep2>(), configureOptions));
266sp.GetRequiredService<TDep1>(),
267sp.GetRequiredService<TDep2>(),
268sp.GetRequiredService<TDep3>(),
296sp.GetRequiredService<TDep1>(),
297sp.GetRequiredService<TDep2>(),
298sp.GetRequiredService<TDep3>(),
299sp.GetRequiredService<TDep4>(),
329sp.GetRequiredService<TDep1>(),
330sp.GetRequiredService<TDep2>(),
331sp.GetRequiredService<TDep3>(),
332sp.GetRequiredService<TDep4>(),
333sp.GetRequiredService<TDep5>(),
381new ValidateOptions<TOptions, TDep>(Name, sp.GetRequiredService<TDep>(), validation, failureMessage));
413sp.GetRequiredService<TDep1>(),
414sp.GetRequiredService<TDep2>(),
452sp.GetRequiredService<TDep1>(),
453sp.GetRequiredService<TDep2>(),
454sp.GetRequiredService<TDep3>(),
496sp.GetRequiredService<TDep1>(),
497sp.GetRequiredService<TDep2>(),
498sp.GetRequiredService<TDep3>(),
499sp.GetRequiredService<TDep4>(),
545sp.GetRequiredService<TDep1>(),
546sp.GetRequiredService<TDep2>(),
547sp.GetRequiredService<TDep3>(),
548sp.GetRequiredService<TDep4>(),
549sp.GetRequiredService<TDep5>(),
Microsoft.Extensions.Options.ConfigurationExtensions (1)
Microsoft.Extensions.Options.Contextual.Tests (8)
Microsoft.Extensions.Resilience.PerformanceTests (1)
Microsoft.Extensions.Resilience.Tests (2)
Microsoft.Extensions.ServiceDiscovery (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Microsoft.Extensions.ServiceDiscovery.Tests (18)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
Microsoft.Extensions.Telemetry.Abstractions.Tests (9)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.Telemetry.Tests (46)
Microsoft.Extensions.WebEncoders.Tests (15)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.ML.AutoML (16)
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.Fairlearn (6)
Microsoft.ML.GenAI.Phi.Tests (1)
Mvc.RoutingWebSite (1)
OrderProcessor (1)
RoutingSandbox (4)
RoutingWebSite (3)
SecurityWebSite (1)
Shared.Tests (3)
SocialSample (5)
SocialWeather (1)
Sockets.BindTests (5)
Sockets.FunctionalTests (2)
SqlServerEndToEnd.DbSetup (2)
StartRequestDelegateUrlApp (1)
StartRouteBuilderUrlApp (1)
StartWithIApplicationBuilderUrlApp (1)
Stress.ApiService (1)
Stress.AppHost (1)
VersioningWebSite (1)
WaitForSandbox.DbSetup (1)
Wasm.Performance.ConsoleHost (1)
Wasm.Performance.Driver (1)
XmlFormattersWebSite (2)