ServiceResolver.GenericHost.AspNetCore
3.6.2
See the version list below for details.
dotnet add package ServiceResolver.GenericHost.AspNetCore --version 3.6.2
NuGet\Install-Package ServiceResolver.GenericHost.AspNetCore -Version 3.6.2
<PackageReference Include="ServiceResolver.GenericHost.AspNetCore" Version="3.6.2" />
<PackageVersion Include="ServiceResolver.GenericHost.AspNetCore" Version="3.6.2" />
<PackageReference Include="ServiceResolver.GenericHost.AspNetCore" />
paket add ServiceResolver.GenericHost.AspNetCore --version 3.6.2
#r "nuget: ServiceResolver.GenericHost.AspNetCore, 3.6.2"
#:package ServiceResolver.GenericHost.AspNetCore@3.6.2
#addin nuget:?package=ServiceResolver.GenericHost.AspNetCore&version=3.6.2
#tool nuget:?package=ServiceResolver.GenericHost.AspNetCore&version=3.6.2
ServiceResolver.GenericHost.AspNetCore adds ASP.NET Core integration on top of ServiceResolver.GenericHost: request-scoped resolution, and controller activation through your provider instead of ASP.NET Core's own container.
Install this alongside an engine's Generic Host package — e.g. ServiceResolver.GenericHost.SimpleInjector, whose readme has a full ASP.NET Core setup example.
Usage
Call these two extension methods on IServiceRegister, from your OnRegistering callback:
serviceRegister
.AddAspNetCore()
.AddControllerActivation();
AddAspNetCore()— registers request-scoping (viaIStartupFilter) and decoratesIHttpContextFactorysoHttpContext.RequestServicesresolves through your provider instead of ASP.NET Core's own container.AddControllerActivation()— discovers and registers all MVC controllers, and replaces the defaultIControllerActivatorso controllers are constructed (and disposed) by your provider.
Main types
ServiceResolverControllerActivator— theIControllerActivatorimplementation used byAddControllerActivation().
Related packages
ServiceResolver.GenericHost
For the full guide, see the documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ServiceResolver.GenericHost (>= 3.6.2)
-
net6.0
- ServiceResolver.GenericHost (>= 3.6.2)
-
net8.0
- ServiceResolver.GenericHost (>= 3.6.2)
-
net9.0
- ServiceResolver.GenericHost (>= 3.6.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.6.4 | 23 | 8/21/2026 |
| 3.6.3 | 45 | 8/20/2026 |
| 3.6.2 | 36 | 8/20/2026 |
| 3.6.1 | 1,805 | 12/1/2025 |
| 3.5.2 | 692 | 8/6/2025 |
| 3.5.1 | 158 | 8/3/2025 |
| 3.4.2 | 296 | 6/24/2025 |
| 3.4.1 | 974 | 3/4/2025 |
| 3.4.1-rc2 | 185 | 2/27/2025 |
| 3.4.1-rc1 | 180 | 2/27/2025 |
| 3.3.2 | 313 | 11/25/2024 |
| 3.3.1 | 419 | 10/10/2024 |
| 3.2.1 | 207 | 9/10/2024 |
| 3.1.1 | 260 | 9/9/2024 |
| 2.2.1 | 728 | 4/5/2024 |
| 2.1.1 | 206 | 2/28/2024 |
| 1.0.1 | 214 | 1/26/2024 |