KamiSama.Extensions.DependencyInjection
10.0.11.1
dotnet add package KamiSama.Extensions.DependencyInjection --version 10.0.11.1
NuGet\Install-Package KamiSama.Extensions.DependencyInjection -Version 10.0.11.1
<PackageReference Include="KamiSama.Extensions.DependencyInjection" Version="10.0.11.1" />
<PackageVersion Include="KamiSama.Extensions.DependencyInjection" Version="10.0.11.1" />
<PackageReference Include="KamiSama.Extensions.DependencyInjection" />
paket add KamiSama.Extensions.DependencyInjection --version 10.0.11.1
#r "nuget: KamiSama.Extensions.DependencyInjection, 10.0.11.1"
#:package KamiSama.Extensions.DependencyInjection@10.0.11.1
#addin nuget:?package=KamiSama.Extensions.DependencyInjection&version=10.0.11.1
#tool nuget:?package=KamiSama.Extensions.DependencyInjection&version=10.0.11.1
KamiSama.Extensions.DependencyInjection
Version: 10.0.0
Description
Automatically register attributed service implementations with Microsoft.Extensions.DependencyInjection by scanning selected assemblies. Choose transient, scoped, or singleton lifetimes, keyed or unkeyed registrations, explicit or inferred service types, and single or multiple registrations.
How to use
dotnet add package KamiSama.Extensions.DependencyInjection --version 10.0.0
Decorate each implementation with the appropriate registration attribute, then scan its assembly during service configuration:
using KamiSama.Extensions.DependencyInjection;
[AutoInjectScoped<IProductService>]
public sealed class ProductService : IProductService;
services.AutoAddDependenciesFrom<Program>();
Namespaces
- KamiSama.Extensions.DependencyInjection (9 types)
Types
- KamiSama.Extensions.DependencyInjection.AutoInjectAttribute - General-purpose dependency injection attribute where service type and lifetime can be configured directly on the implementation type.
- KamiSama.Extensions.DependencyInjection.AutoInjectAttributeBase - Base attribute for convention-based dependency injection registration. Derived attributes use it to register the decorated type against an explicit or inferred service type.
- KamiSama.Extensions.DependencyInjection.AutoInjectScopedAttribute - Dependency injection attribute for scoped services. Use it on implementations that should be created once per request or scope.
- KamiSama.Extensions.DependencyInjection.AutoInjectScopedAttribute<TServiceType> - Dependency injection attribute for scoped services. Use it on implementations that should be created once per request or scope.
- KamiSama.Extensions.DependencyInjection.AutoInjectSingletonAttribute - Dependency injection attribute for singleton services. Use it on implementations that should be shared for the application lifetime.
- KamiSama.Extensions.DependencyInjection.AutoInjectSingletonAttribute<TService> - Dependency injection attribute for singleton services. Use it on implementations that should be shared for the application lifetime.
- KamiSama.Extensions.DependencyInjection.AutoInjectTransientAttribute - Dependency injection attribute for transient services. Use it on implementations that should be created each time they are requested.
- KamiSama.Extensions.DependencyInjection.AutoInjectTransientAttribute<TService> - Dependency injection attribute for transient services. Use it on implementations that should be created each time they are requested.
- KamiSama.Extensions.DependencyInjection.ServiceCollectionExtensions - Assembly-scanning extensions for registering implementations decorated with
AutoInjectAttributeBase. Scan explicit assemblies or use marker types to select one or two assemblies.
| 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. |
-
net10.0
NuGet packages (30)
Showing the top 5 NuGet packages that depend on KamiSama.Extensions.DependencyInjection:
| Package | Downloads |
|---|---|
|
Polareum.Commons.RestSharp
Package Description |
|
|
Polareum.Otp.Core
Package Description |
|
|
Polareum.Externals.Sms.Core
Package Description |
|
|
Polareum.Externals.Email.Core
Package Description |
|
|
Polareum.Identity.Core
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.11.1 | 72 | 8/15/2026 |
| 10.0.11 | 157 | 8/11/2026 |
| 10.0.10.2 | 228 | 8/4/2026 |
| 10.0.10.1 | 113 | 7/31/2026 |
| 10.0.10 | 444 | 7/30/2026 |
| 10.0.9 | 277 | 6/20/2026 |
| 10.0.7 | 1,579 | 5/1/2026 |
| 10.0.6 | 508 | 4/16/2026 |
| 10.0.1 | 544 | 11/26/2025 |
| 10.0.0 | 272 | 11/22/2025 |
| 3.1.6 | 270 | 11/7/2025 |
| 3.1.5 | 259 | 11/6/2025 |
| 3.1.4 | 257 | 10/1/2025 |
| 3.1.3 | 274 | 7/7/2025 |
| 3.1.2 | 244 | 7/7/2025 |
| 3.1.1 | 254 | 7/6/2025 |
| 3.1.0 | 251 | 7/6/2025 |
| 3.0.11 | 287 | 6/3/2025 |
| 3.0.11-preview | 222 | 5/26/2025 |
| 3.0.10 | 322 | 5/16/2025 |