Skip to main content
DependencyInjection.StaticAccessor package icon

DependencyInjection.StaticAccessor

Provide a static property PinnedScope.ScopedServices that allows you to get the IServiceProvider instance within the current scope from anywhere.

Total Downloads
16.9K
16,940
Published
Dec 7, 2024
Latest stable version

Install

.NET CLI
dotnet add package DependencyInjection.StaticAccessor --version 9.0.0-preview-1733580617
Package Manager Console
Install-Package DependencyInjection.StaticAccessor -Version 9.0.0-preview-1733580617
PackageReference
<PackageReference Include="DependencyInjection.StaticAccessor" Version="9.0.0-preview-1733580617" />

Frameworks

.NETStandard2.0 .NETStandard2.1

Dependencies

[9.0.0, 10.0.0)
[9.0.0, 10.0.0)

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.