Releases: z4kn4fein/stashbox-extensions-dependencyinjection
Releases · z4kn4fein/stashbox-extensions-dependencyinjection
v5.7.0
Added
IServiceCollection
based configuration for tenantsbuilder.Host.UseStashboxMultitenant<HttpHeaderTenantIdExtractor>( options => { // Root container configuration through the IStashboxContainer interface. options.RootContainer.Configure(opts => { /* configure the root container */ }); // Configure root services through the IServiceCollection interface. options.ConfigureRootServices(services => services.AddTransient<IDependency, DefaultDependency>()); // Configure tenants. options.ConfigureTenant("TenantA", tenantContainer => tenantContainer.Configure(opts => { /* configure the tenant container */ })) // Register tenant specific service overrides through the IServiceCollection interface. .ConfigureServices(services => services.AddTransient<IDependency, TenantASpecificDependency>()); options.ConfigureTenant("TenantB", tenantContainer => tenantContainer.Configure(opts => { /* configure the tenant container */ })) // Register tenant specific service overrides through the IServiceCollection interface. .ConfigureServices(services => services.AddTransient<IDependency, TenantBSpecificDependency>()); });
v5.6.0
v5.5.4
v5.5.3
v5.5.2
v5.5.1
v5.5.0
v5.4.0
Added
- .NET 8.0 target.
- Full support for MS.DI keyed services.