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
                    
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="TreeNodes.Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TreeNodes.Microsoft.Extensions.DependencyInjection" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="TreeNodes.Microsoft.Extensions.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 TreeNodes.Microsoft.Extensions.DependencyInjection --version 10.0.0
                    
#r "nuget: TreeNodes.Microsoft.Extensions.DependencyInjection, 10.0.0"
                    
#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 TreeNodes.Microsoft.Extensions.DependencyInjection@10.0.0
                    
#: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=TreeNodes.Microsoft.Extensions.DependencyInjection&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TreeNodes.Microsoft.Extensions.DependencyInjection&version=10.0.0
                    
Install as a Cake Tool

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.

Nuget.org client

PM> Install-Package TreeNodes.Microsoft.Extensions.DependencyInjection

Status

CI status

Publish status

License

MIT

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 (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