TreeNodes.Microsoft.Extensions.DependencyInjection
10.0.0
dotnet add package TreeNodes.Microsoft.Extensions.DependencyInjection --version 10.0.0
NuGet\Install-Package TreeNodes.Microsoft.Extensions.DependencyInjection -Version 10.0.0
<PackageReference Include="TreeNodes.Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
<PackageVersion Include="TreeNodes.Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
<PackageReference Include="TreeNodes.Microsoft.Extensions.DependencyInjection" />
paket add TreeNodes.Microsoft.Extensions.DependencyInjection --version 10.0.0
#r "nuget: TreeNodes.Microsoft.Extensions.DependencyInjection, 10.0.0"
#:package TreeNodes.Microsoft.Extensions.DependencyInjection@10.0.0
#addin nuget:?package=TreeNodes.Microsoft.Extensions.DependencyInjection&version=10.0.0
#tool nuget:?package=TreeNodes.Microsoft.Extensions.DependencyInjection&version=10.0.0
TreeNodes.Microsoft.Extensions.DependencyInjection
This package makes it possible to make a stack of expenses modular in the form of nodes (CreateNode). Nodes can be added or merged like reusable bricks. In the case of singleton instances, only one instance will be built and shared. For example, it is possible to create a logging policy as follows:
var loggingNode = new ServiceCollection()
.AddLogging(b => b.AddConsole())
.CreateNode("logging.strategy");
Usage is as follows:
var services = new ServiceCollection() + loggingNode;
Or
var services = new ServiceCollection()
loggingNode.ConnectTo(services);//to inject the stack
Or
var services = loggingNode.CreateBranch();
The logging brick can be retrieved later with the provider:
var node = services.BuildServiceProvider().GetNode("logging.strategy");
Go to samples for more details..
How to get it
Use NuGet Package Manager to install the package or use any of the following commands in NuGet Package Manager Console.
PM> Install-Package TreeNodes.Microsoft.Extensions.DependencyInjection
Status
License
| 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
- Microsoft.Extensions.DependencyInjection (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TreeNodes.Microsoft.Extensions.DependencyInjection:
| Package | Downloads |
|---|---|
|
Net.EntityFramework.CodeGenerator.Core
.Net Entity Framework Code Generator |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0 | 129 | 1/23/2026 |
| 7.0.1 | 717 | 2/19/2023 |
| 7.0.0 | 421 | 12/5/2022 |
| 1.0.0-alpha-a2 | 319 | 2/11/2022 |
| 1.0.0-alpha-a1 | 323 | 2/11/2022 |