Temelie.DependencyInjection 1.0.205

This package has a SemVer 2.0.0 package version: 1.0.205+60dc293.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Temelie.DependencyInjection --version 1.0.205
                    
NuGet\Install-Package Temelie.DependencyInjection -Version 1.0.205
                    
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="Temelie.DependencyInjection" Version="1.0.205" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Temelie.DependencyInjection" Version="1.0.205" />
                    
Directory.Packages.props
<PackageReference Include="Temelie.DependencyInjection" />
                    
Project file
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 Temelie.DependencyInjection --version 1.0.205
                    
#r "nuget: Temelie.DependencyInjection, 1.0.205"
                    
#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 Temelie.DependencyInjection@1.0.205
                    
#: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=Temelie.DependencyInjection&version=1.0.205
                    
Install as a Cake Addin
#tool nuget:?package=Temelie.DependencyInjection&version=1.0.205
                    
Install as a Cake Tool

Temelie.DependencyInjection

Attribute-based service registration for Microsoft.Extensions.DependencyInjection. Mark classes with [Export...] attributes, and Temelie.DependencyInjection.SourceGenerator generates the registrations at compile time, with no reflection or assembly scanning at runtime.

dotnet add package Temelie.DependencyInjection

Attributes

Attribute Registers as
[ExportTransient(typeof(IService))] AddTransient
[ExportScoped(typeof(IService))] AddScoped
[ExportSingleton(typeof(IService))] AddSingleton
[ExportProvider(typeof(IService))] AddTransient, keeping every implementation; resolve them with IEnumerable<IService>
[ExportHostedService] AddHostedService<T>()
[ExportStartupConfiguration] A startup step (IStartupConfiguration)

Each export attribute takes the service type in its constructor and supports these properties:

  • Type: the implementation to register. Defaults to the attributed class.
  • Priority: how competing registrations are resolved. When several non-provider exports target the same service type, the one with the lowest Priority wins. The default is int.MaxValue, so you can replace any library default by exporting your own implementation with a lower Priority.
[ExportTransient(typeof(IClock))]
public class SystemClock : IClock { ... }

[ExportProvider(typeof(IChangeTrackingSourceProvider))]
public class MyChangeSource : IChangeTrackingSourceProvider { ... }

[ExportTransient(typeof(IClock), Priority = 1)]   // replaces SystemClock
public class FixedClock : IClock { ... }

Startup configuration

IStartupConfiguration lets a library contribute configuration sources, services, and post-build setup:

[ExportStartupConfiguration(Priority = 10)]
public class DatabaseStartup : IStartupConfiguration
{
    public IConfigurationBuilder Configure(IConfigurationBuilder builder) => builder.AddJsonFile("database.json", optional: true);

    public IServiceCollection Configure(IServiceCollection services, IConfiguration configuration) =>
        services.AddDbContextFactory<MyDbContext>();

    public IServiceProvider Configure(IServiceProvider provider) => provider;
}

Startup configurations need a parameterless constructor and run in ascending Priority order. See the source generator for how to run them.

Product 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.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Temelie.DependencyInjection:

Package Downloads
Temelie.Database.Services

Package Description

Temelie.Repository

Package Description

Temelie.Repository.EntityFrameworkCore

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.207 48 11/7/2026
1.0.206 43 11/7/2026
1.0.205 44 11/7/2026
1.0.204 49 11/7/2026
1.0.202 4,018 10/13/2026
1.0.201 7,555 8/28/2026
1.0.200 222 8/26/2026
1.0.199 138 8/21/2026
1.0.196 97 8/21/2026
1.0.195 96 8/21/2026
1.0.194 2,041 8/19/2026
1.0.193 76 8/12/2026
1.0.192 21,713 7/21/2026
1.0.191 4,183 7/13/2026
1.0.190 1,037 7/9/2026
1.0.189 23,641 2/18/2026
1.0.188 75 2/13/2026
1.0.187 184 11/21/2025
1.0.186 4,782 11/20/2025
1.0.185 109 11/20/2025
Loading failed