Rystem.DependencyInjection.Web 9.0.16

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

What is Rystem?

Get Started with Runtime Dependency Injection

Adding runtime provider

 builder.Services.AddRuntimeServiceProvider();

and after the build use the runtime provider

var app = builder.Build();
app.UseRuntimeServiceProvider();

Add service at runtime

await RuntimeServiceProvider.GetServiceCollection()
       .AddSingleton<Service2>()
       .RebuildAsync();

Add service at runtime with lock

 await RuntimeServiceProvider
    .AddServicesToServiceCollectionWithLock(configureFurtherServices =>
    {
        configureFurtherServices.AddSingleton(service);
    })
.RebuildAsync();

Add fallback for Factory and automatic rebuild of service collection

In this example Factorized is a simple class with a few parameters.

services.AddFactory<Factorized>("1");
services.AddActionAsFallbackWithServiceCollectionRebuilding<Factorized>(async x =>
{
    //example of retrievieng something
    await Task.Delay(1); 
    //example of ServiceProvider usage during new service addition
    var singletonService = x.ServiceProvider.GetService<SingletonService>();
    if (singletonService != null)
    {
        //example of adding a new service as factory to the service collection. You need to pass a delegate.
        x.ServiceColletionBuilder = (serviceCollection => serviceCollection.AddFactory<Factorized>(x.Name));
    }
});
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 Rystem.DependencyInjection.Web:

Package Downloads
Rystem.Test.XUnit

Rystem is a open-source framework to improve the System namespace in .Net

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.1.2 130,526 5/29/2025
9.1.1 97,724 5/2/2025
9.0.32 186,559 4/15/2025
9.0.31 5,724 4/2/2025
9.0.30 88,765 3/26/2025
9.0.29 8,927 3/18/2025
9.0.28 157 3/17/2025
9.0.27 150 3/16/2025
9.0.26 159 3/13/2025
9.0.25 52,028 3/9/2025
9.0.23 129 3/9/2025
9.0.21 225 3/6/2025
9.0.20 19,479 3/6/2025
9.0.19 219 3/6/2025
9.0.18 238 3/4/2025
9.0.17 108 3/1/2025
9.0.16 107 3/1/2025
9.0.15 75,441 2/22/2025
9.0.14 22,510 2/18/2025
9.0.13 121 2/9/2025
9.0.12 217,613 1/13/2025
9.0.11 23,959 1/9/2025
9.0.10 98 1/9/2025
9.0.9 3,978 1/7/2025
9.0.8 12,467 1/6/2025
9.0.7 113 1/6/2025
9.0.5 19,066 12/30/2024
9.0.4 92,258 12/23/2024
9.0.3 109 12/22/2024
9.0.2 10,665 12/21/2024
9.0.1 1,147 12/21/2024
9.0.0 172,999 11/16/2024
9.0.0-rc.1 100 10/18/2024
6.2.0 218,957 10/9/2024
6.1.1 117 10/9/2024
6.1.0 47,869 9/29/2024
6.0.24 160 9/11/2024
6.0.23 340,076 7/18/2024
6.0.21 156 6/18/2024
6.0.20 727,789 6/16/2024
6.0.19 30,390 6/14/2024
6.0.18 137 6/14/2024
6.0.17 137 6/14/2024
6.0.16 49,983 6/10/2024
6.0.15 115 6/10/2024