DependencyInjection.StaticAccessor
Provide a static property PinnedScope.ScopedServices that allows you to get the IServiceProvider instance within the current scope from anywhere.
Install
dotnet add package DependencyInjection.StaticAccessor --version 9.0.0-preview-1733580617
Install-Package DependencyInjection.StaticAccessor -Version 9.0.0-preview-1733580617
<PackageReference Include="DependencyInjection.StaticAccessor" Version="9.0.0-preview-1733580617" />
Frameworks
Dependencies
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
This version is marked prerelease. Validate its API and upgrade path before production use.
Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.