Soenneker.Extensions.ServiceProvider
4.0.331
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Extensions.ServiceProvider --version 4.0.331
NuGet\Install-Package Soenneker.Extensions.ServiceProvider -Version 4.0.331
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.ServiceProvider" Version="4.0.331" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.ServiceProvider" Version="4.0.331" />
<PackageReference Include="Soenneker.Extensions.ServiceProvider" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.ServiceProvider --version 4.0.331
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.ServiceProvider, 4.0.331"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.ServiceProvider@4.0.331
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.ServiceProvider&version=4.0.331
#tool nuget:?package=Soenneker.Extensions.ServiceProvider&version=4.0.331
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.ServiceProvider
A collection of useful IServiceProvider methods.
Installation
dotnet add package Soenneker.Extensions.ServiceProvider
Quick start
using Soenneker.Extensions.ServiceProvider;
// Given an existing IServiceProvider named serviceProvider:
var result = serviceProvider.Get();
Common operations
Get()- Retrieves a service of the specified type from the service provider. Throws an exception if the service is not registered. Returns an instance of type T obtained from the service provider.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Extensions.ServiceProvider:
| Package | Downloads |
|---|---|
|
Soenneker.Tests.FixturedUnit
A fundamental xUnit test that stores UnitFixture and provides synthetic inversion of control |
|
|
Soenneker.Tests.HostedUnit
A fundamental test that stores the TestHost and provides synthetic inversion of control |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.352 | 6,171 | 11/18/2026 |
| 11.0.351 | 34,311 | 11/11/2026 |
| 11.0.350 | 2,661 | 11/10/2026 |
| 11.0.349 | 91 | 11/10/2026 |
| 4.0.348 | 61,114 | 10/25/2026 |
| 4.0.347 | 29,262 | 10/14/2026 |
| 4.0.346 | 8,487 | 10/14/2026 |
| 4.0.340 | 3,458 | 10/12/2026 |
| 4.0.339 | 8,831 | 10/12/2026 |
| 4.0.338 | 21,301 | 10/11/2026 |
| 4.0.337 | 60,699 | 9/24/2026 |
| 4.0.336 | 25,064 | 9/15/2026 |
| 4.0.335 | 35,883 | 9/12/2026 |
| 4.0.334 | 18,402 | 9/8/2026 |
| 4.0.333 | 99,410 | 8/29/2026 |
| 4.0.331 | 318 | 8/29/2026 |
| 4.0.330 | 67,105 | 8/12/2026 |
| 4.0.329 | 76,115 | 7/27/2026 |
| 4.0.328 | 66,935 | 7/16/2026 |
| 4.0.327 | 18,423 | 7/15/2026 |
Loading failed
Improve README documentation