NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #713 most downloaded on NuGet
Simple Injector is an easy, flexible and fast dependency injection library that uses best practice to guide your solutions toward the pit of success.
Latest stable
5.6.0
Last release 4 months ago
28 Jun 2026
Ships unpredictably
gaps range from 1 weeks to 1.7 years
Most releases are documented
notes for 49 of the last 60 stable releases
6 versions withdrawn
withdrawn after publishing
127 years old
192 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.6.x release.
Scope.GetAllInstances<TService>() and GetAllInstances(Type serviceType) method overloads.Container.RegisterSingleton(Type concreteType) overload.This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.5.x release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.5.x release.
This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.5.x release.
SimpleInjector.Scope instance in the Visual Studio debugger, you'll now see information that uniquely identifies the scope, parent scope and its container instance.List<T> instances are created by Simple Injector as transient.This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.4.x release.
This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.4.x release.
This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.4.x release.
This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.4.x release.
Nothing published for this version
This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.4.x release.
This release is available through Nuget .
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.4.x release.
ThreadLocal<bool>.Nothing published for this version
Nothing published for this version
This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.4.x release.
This minor release focuses around improved support for Flowing scopes and contains the following improvements and new features:
InstanceProducer.GetInstance(Scope) overload was added to allow resolving instances from an InstanceProducer in conjunction with Flowing scopes.DependencyMetadata<T> can now be used in conjunction with Flowing scopes.IsClosedTypeOf extension method would returned true when the the given type was open generic; this also impacted GetClosedTypeOf and GetClosedTypesOf.This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.3.x release.
This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.3.x release.
This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.3.x release.
This patch fixes a caching bug in GetRegistration, which could cause a a call to GetRegistration or GetService to invalidly return null.
GetRegistration(Type) and GetRegistration<T>() would return null, even after that type was registered, when GetRegistration was called before that registration was made.GetService(Type) would return null instead of the registered service, when a call to GetRegistration was made before the registration was made.This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.3.x release.
This minor release contains the following improvements and new features:
Container.GetTypesToRegister<T>(IEnumerable<Assembly>, TypesToRegisterOptions) overload.Container.GetRegistration<T>() failed with cast exception. This generic overload was added in v5.0, but almost never worked.GetRegistration. A call to GetRegistration is now much less likely to cause the container to be locked. Thanks to @AroglDarthu for suggesting this.Scope to be provided to a ScopedLifestyle to allow it to become the current active ambient scope. This feature was especially added for corner-case scenarios, such as Blazor integration.Nothing published for this version
Nothing published for this version
This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.3.x release.
This patch fixes a concurrency bug that was introduced in v5.2.0 and impacts users of all builds except .NET Standard 2.1. All v5.2.0 users are advised to upgrade to this patch release.
Unfortunately, this forces the following breaking changes in the core library:
This release is available through Nuget.
WARNING: There was a multi-threading bug introduced in this release that could impact most users. Please skip this release and upgrade to (at least) v5.2.1.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.3.x release.
This minor release implements the following work items:
IAsyncDisposable registrationsMicrosoft.Bcl.AsyncInterfaces dependencyThe most important change in this minor release is #867, which solves the binding redirect issues that users have reported since the introduction of v5. This is done by removing the Microsoft.Bcl.AsyncInterfaces NuGet package dependency (#867). Unfortunately, this forces the following breaking changes in the core library:
Scope.RegisterForDisposal(IAsyncDisposable) method is removed and replaced with a Scope.RegisterForDisposal(object) overload.Container and Scope no longer implement IAsyncDisposable effectively removing Container.DisposeAsyc() and Scope.DisposeAsync() from those builds.These breaking changes were required because the removal of the Microsoft.Bcl.AsyncInterfaces dependency disallows Simple Injector types to implement IAsyncDisposable. Fortunately, unless you were calling DisposeAsync yourself, an upgrade to Simple Injector v5.2 is likely a graceful one. For a more detailed discussion on what the problem was, please read our blog post.
The problem was urgent enough to force these breaking changes on a minor release, instead of making this into a major release, which takes much more planning and time.
NOTE: Do note that if you are using ASP.NET Core, you must upgrade the ASP.NET Core integration packages as well. The old packages will break with v5.2.
This doesn't mean, though, that asynchronous disposal isn't possible anymore. On the contrary actually. Where previous minor releases only allowed asynchronous disposal in the .NET 4.6.1, .NET Standard 2.0, and .NET Standard 2.1 builds of Simple Injector, asynchronous disposal is now supported in all builds. To make this possible, the following additions have been made:
IAsyncDisposable. This means that Simple Injector checks if your type implements an interface named "System.IAsyncDisposable". Upon disposal, Simple Injector expects that interface to contain an DisposeAsync method. That method should either return Task, or ValueTask. This means that you can either let your application depend on Microsoft.Bcl.AsyncInterfaces or define the interface yourself. As always, we ensured maximum performance; even this duck typing is blazingly fast.IAsyncDisposable. .NET Standard 2.1 (which means you're either running .NET Core 3 or .NET 5) is provided out of the box.Task Container.DisposeContainerAsync() method is added to allow disposing of the Container in an asynchronous fashion.Task Scope.DisposeScopeAsync() method is add to allow disposing of the Scope in an asynchronous fashion.object[] Scope.GetAllDisposables() method is added to allow retrieving all disposables instances that were created by a Scope. The list will return both IDisposable and IAsyncDisposable implementations.Nothing published for this version
Nothing published for this version
This release is available through Nuget.
This release is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.2.x release.
This minor release adds two new features to the core library:
Collection.Append and Collection.Register can now be called while supplying both a lifestyle and open generic implementations.DependencyMetadata<T> can now be used in conjunction with Flowing scopes.Thanks to @henriblMSFT for providing high-quality feature requests that made this possible.
Simple Injector v5.0.4 is available through Nuget.
Simple Injector v5.0.4 is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.2.x release.
This patch release fixes three bugs:
AllowOverridingRegistrations is set to trueLifestyle.Singleton.CreateRegistration using a Func<object> delegate, C# overload resolution would cause the incorrect CreateRegistration overload to be called.Simple Injector v5.0.3 is available through Nuget.
Simple Injector v5.0.3 is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.2.x release.
This patch release improves reporting of duplicate registrations during Auto-Registration in case the same assembly is (accidentally) loaded twice (while the runtime considers them separate assemblies). Simple Injector will now report (through an exception message) that the assembly is loaded more than once and it describes how to solve this problem.
Simple Injector v5.0.2 is available through Nuget.
Simple Injector v5.0.2 is available through Nuget.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.2.x release.
This patch release fixes issue #829 and allows collections with Scoped dependencies be resolved from a Scope when the 'Flowing' scoping model is used.
Nothing published for this version
Below you find the complete list of all the breaking changes in the core library and all officially supported integration libraries.
Simple Injector v5 is available through Nuget. For more background information about this release and a general overview, please read the blog post.
When upgrading from v4.x, please make sure you upgrade your application to the latest v4.x version of Simple Injector first. After that upgrade directly to the latest v5.2.x release.
For the release notes of the ASP.NET Core integration packages, go here.
The most prominent changes and improvements in this release are:
Lifestyle.Scoped because Simple Injector now allows Transient dependencies to be injected without causing verification errors.Container and Scope classes now implement IAsyncDisposable to allow asynchronous disposal of components (only in .NET 4.6.1, .NET Standard 2.0, and .NET Standard 2.1 versions)SimpleInjector.DependencyMetadata<TService> into your infrastructural components to get the actual implementation type, even when that component is intercepted with decorators. This also works for collections.Below you find the complete list of all the breaking changes in the core library and all officially supported integration libraries.
GetInstance(). You will be affected if you purposely skipped verifying the container. This behavior can be disabled by setting Container.Options.EnableAutoVerification = false;RegisterConditional, the PredicateContext.Consumer property will now never return null, but instead it throws an exception. Use the new PredicateContext.HasConsumer property instead of checking for null. You will be affected when you checked PredicateContext.Consumer for null.Container.Options.UseStrictLifestyleMismatchBehavior = truewhere TService : class type constraint was removed from InstanceProducer<TService>InstanceProducer constructor became obsolete.ConstructorInfo GetConstructor(Type) method of IConstructorResolutionBehavior interface replaced with ConstructorInfo? TryGetConstructor(Type, out string?) method. You will be affected when you replaced the default constructor resolution behavior.void Verify(InjectionConsumerInfo) method of IDependencyInjectionBehavior interface replaced with bool VerifyDependency(InjectionConsumerInfo, out string?) method. You will be affected when you replaced the default dependency injection behavior.Container.Options.ResolveUnregisteredConcreteTypes = true;.Options.EnableDynamicAssemblyCompilation is now obsolete and replaced with a new Options.ExpressionCompilationBehavior.ObsoleteAttribute) have been removed. To prevent any problems, make sure you upgrade to the latest v4.x release first before upgrading to v5. Only upgrade to v5 after fixing all compiler warnings and errors .Obsolete(error: true) which will cause a compiler error when used:
AdvancedExtensions methods (IsLocked, IsVerifying, GetItem, SetItem, GetOrSetItem<T>, and AppendToCollection)Container.RegisterCollection overloads (they have been replaced with Container.Collection.Register)Container.RegisterSingleton overloads for registering already existing instances (they have been replaced with Container.RegisterInstance methods)Scope's default constructorLifestyle: protected Lifestyle.CreateRegistrationCore<T>(Container) method removed. You should now inherit from Lifestyle.CreateRegistrationCore(Type, Container). It has the same semantics.Registration: Type implemenationType and Func<object> instanceCreator = null parameters added to Registration constructor. You will be affected when you developed a custom lifestyle.Registration: BuildTransientDelegate<TService>(Func<TService>) removed. You can call BuildTransientDelegate() instead. You will be affected when you developed a custom lifestyle.Registration: BuildTransientExpression<TService>(Func<TService>) removed. You can call BuildTransientExpression() instead. You will be affected when you developed a custom lifestyle.Lifestyle.Singleton.CreateRegistration(Type, object, Container) method added for the creation of Registration instances for already-created instances, including value types.PredicateContext.HasConsumer property added to see whether there is a consumer or the type is being resolved directly from the container.Options.UseStrictLifestyleMismatchBehavior property added that replaces the old Options.UseLoosenedLifestyleMismatchBehavior.InstanceProducer.ImplementationType property added.DependencyMetadata<TService> class added. You can now inject a DependencyMetadata<TService> or IEnumerable<DependencyMetadata<TService>> into a consumer to get metadata about the injected dependency.Container now implements IAsyncDisposable (only in .NET 4.6.1, .NET Standard 2.0, and .NET Standard 2.1 versions).Scope now implements IAsyncDisposable (only in .NET 4.6.1, .NET Standard 2.0, and .NET Standard 2.1 versions).DependencyInjectionBehaviorExtensions class added with Verify extension method to mimic the old behavior of IDependencyInjectionBehavior.ConstructorResolutionBehaviorExtensions class added with GetConstructor extension method to mimic the old behavior of IConstructorResolutionBehavior.Container.IsLocked property added.-#229 Remove the reference-type restriction from Container.RegisterConditional and Lifestyle.CreateRegistration
PredicateContext.Consumer from returning null.IAsyncDisposable integration using Scope.AsyncDispose and Container.AsyncDispose.Lifestyle.CreateRegistrationCore<T>(Container) with Lifestyle.CreateRegistrationCore(Type, Container).Nothing published for this version
Nothing published for this version
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
NOTE: Due to a merging error, the NuGet package containing Simple Injector 4.10.0 and 4.10.1 are identical to that of Simple Injector 4.9.2.
This is a small minor release, which adds just some overloads to Container.Collection.Register in the core library. See below for more details.
Container.Collection.Register overloads that accept a Lifestyle argumentNothing published for this version
Nothing published for this version
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
RegisterConditional registrations were not considered when constructing an exception message that warned about registrations with a similar naming.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Func<T> decoratee factories are now visualized correctly.IEnumerable<T>) are now visualized correctly.SimpleInjectorControllerActivator in case an unregistered controller is requested.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
The most prominent improvements in this release are:
ReadOnlyCollection<T> in the core library.Transient dependencies to be injected into Scoped consumers using the Container.Options.UseLoosenedLifestyleMismatchBehavior configuration switch.services.AddSimpleInjector(container, options => { options.DisposeContainerWithServiceProvider = false; }).IAsyncDisposable components, created by Simple Injector during the course of a web request, will now be automatically, and asynchronously disposed.ReadOnlyCollection<T> collections addedOptions.ResolveUnregisteredConcreteTypes is falseContainer instance is now automatically appended to the IServiceCollection to simplify some integration scenarios.IAsyncDisposable. The ASP.NET Core integration package will now automatically do asynchronous disposal of scoped IAsyncDisposable dependencies within the context of a web request.ObsoleteAttributeerror: true and now cause compile errors.The following class members are now marked obsolete:
SimpleInjectorAspNetCoreMvcIntegrationExtensions.RegisterMvcControllers(Container, IApplicationBuilder)SimpleInjectorAspNetCoreMvcIntegrationExtensions.RegisterMvcViewComponents(Container, IApplicationBuilder)SimpleInjectorAspNetCoreMvcIntegrationExtensions.RegisterMvcViewComponents(Container, IViewComponentDescriptorProvider)SimpleInjectorAspNetCoreMvcIntegrationExtensions.AddSimpleInjectorTagHelperActivationSimpleInjectorAspNetCoreMvcIntegrationExtensions.RegisterPageModelsSimpleInjectorAspNetIntegrationExtensions.EnableSimpleInjectorCrossWiring(IServiceCollection, Container)SimpleInjectorAspNetIntegrationExtensions.CrossWire<TService>(Container, IApplicationBuilder)SimpleInjectorAspNetIntegrationExtensions.CrossWire(Container, Type, IApplicationBuilder)SimpleInjectorAspNetIntegrationExtensions.AutoCrossWireAspNetComponents(Container, IApplicationBuilder)SimpleInjectorAspNetIntegrationExtensions.AutoCrossWireAspNetComponents(Container, IServiceProvider)SimpleInjectorUseOptionsAspNetCoreExtensions.UseMiddleware<TMiddleware>(SimpleInjectorUseOptions, IApplicationBuilder)SimpleInjectorUseOptionsAspNetCoreExtensions. UseMiddleware(SimpleInjectorUseOptions, Type, IApplicationBuilder)Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
List<T> or array a Singleton.For the last few years, the development of ASP.NET Core has been in flux. We've seen breaking changes from release to release and we engaged in discus…
Simple Injector can be downloaded using NuGet.
The most prominent improvements in this release are:
For the last few years, the development of ASP.NET Core has been in flux. We've seen breaking changes from release to release and we engaged in discussions with Microsoft about all kinds of issues and bugs that we came across. The introduction of ASP.NET Core v3 again caused some issues with Simple Injector. Those problems took us more time to analyze, discuss, design, test, document, and release.
Finally, in this release we now truly support ASP.NET Core 3. To pull this off, we had to mark quite a few methods as obsolete and replace them with new methods. For the most part, you can follow the compiler-generated obsolete messages that you get once you upgrade to v4.8. Or refer to the documentation, if freshly apply Simple Injector to an ASP.NET Core application.
Note that the v4.8 integration libraries can be used in ASP.NET Core v2 as well, and we advise ASP.NET Core v2 users to upgrade to Simple Injector v4.8 as well, because of the bug fixes we made, and to make it easier later on to migrate to ASP.NET Core v3.
The Container can now perform verification on first resolve. We found that many developers that are new to Simple Injector don't realize that Simple Injector allows verifying the configuration. To mitigate this, v5.0 will automatically verify the container for you when you resolve your first component, in case you, or one of your team members, forgot to call Container.Verify(). In this v4.8 release we add this feature, but leave it disabled by default to prevent any breaking changes. In v5 we will turn the switch. You can enable it by setting Container.Options.EnableAutoVerification to true or you can already set it to false to prevent verification in case you have your own safety net in place (e.g. by calling container.Verify() inside a unit test).
We added a new event that you can subscribe and receive a notification when the container is about to get locked—this would typically happen when the first component gets resolved. This enables making last-minute registrations and allows spotting who is locking the container. The ASP.NET Core integration package is now the primary consumer of this event—it needs this notification to successfully integrate with ASP.NET Core v3.
Container.Options.EnableAutoVerification = true;. The value is false by default, but this will change in v5.Container.ContainerLocking event that signals when the container is about to get locked.SimpleInjectorAddOptions.AutoCrossWireFrameworkComponents property. Can be used from within the AddSimpleInjector setup action.CrossWire() extension methods on top of SimpleInjectorAddOptions. They replace the CrossWire extension methods on top of SimpleInjectorUseOptions.AddLogging() and AddLocalization() extension methods on top of SimpleInjectorAddOptions. They replace the UseLogging() and UseLocalization() extension methods on top of SimpleInjectorUseOptions.The following class members are now marked obsolete:
SimpleInjectorServiceCollectionExtensions:
UseLogging(SimpleInjectorUseOptions). You can call AddLogging(SimpleInjectorAddOptions) instead as part of the AddSimpleInjector setup action.UseLocalization(SimpleInjectorUseOptions). You can call AddLocalization(SimpleInjectorAddOptions) instead as part of the AddSimpleInjector setup action.CrossWire<TService>(SimpleInjectorUseOptions). You can call CrossWire<TService>(SimpleInjectorAddOptions) instead as part of the AddSimpleInjector setup action.CrossWire(SimpleInjectorUseOptions, Type). You can call CrossWire(SimpleInjectorAddOptions, Type) instead as part of the AddSimpleInjector setup action.SimpleInjectorUseOptions:
AutoCrossWireFrameworkComponents. Setting it has no effect any longer and using it will therefore cause a compile error. You can use SimpleInjectorAddOptions.AutoCrossWireFrameworkComponents instead as part of the AddSimpleInjector setup action.The following class members are now marked obsolete:
SimpleInjectorAspNetIntegrationExtensions:
EnableSimpleInjectorCrossWiring(). A call to .AddSimpleInjector() automatically enables cross wiring.CrossWire<TService>(Container, IApplicationBuilder). Instead of calling CrossWire on the Container, you can now call CrossWire on SimpleInjectorAddOptions.CrossWire(this Container, Type, IApplicationBuilder). Instead of calling CrossWire on the Container, you can now call CrossWire on SimpleInjectorAddOptions.AutoCrossWireAspNetComponents(Container, IApplicationBuilder). Auto cross wiring is automatically enabled when calling .AddSimpleInjector().AutoCrossWireAspNetComponents(Container, IServiceProvider). Auto cross wiring is automatically enabled when calling .AddSimpleInjector().SimpleInjectorUseOptionsAspNetCoreExtensions:
UseMiddleware<TMiddleware>(SimpleInjectorUseOptions, IApplicationBuilder). This method can cause your middleware to be applied at the wrong stage in the pipeline. This will, for instance, cause your middleware to be executed before the static files middleware (i.e. the .UseStaticFiles() call) or before authorization is applied (i.e. the .UseAuthorization() call). Instead call app.UseMiddleware<TMiddleware>(Container), and make sure you call it at the right stage. This typically means after .UseStaticFiles() and .UseAuthorization(), but before .UseEndpoints(...).UseMiddleware(SimpleInjectorUseOptions, Type, IApplicationBuilder). Same as previous. Call app.UseMiddleware(Container, Type) instead.TagHelper classes with __Generated__ in their name to be resolved from Simple Injector.AddTagHelperActivation incorrectly uses DefaultScopedLifestyle for tag helpers instead of Lifestyle.Transient.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
This is a patch release that fixes a regression in the MVC integration package (#746).
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
The most prominent improvements in this release are:
IStringLocalizer and IStringLocalizer<T> while integrating with .NET Core. Thanks to contributor @kwlin for implementing this.GetService method to Scope by implementing IServiceProvider.
Usage:Scope scope = ...;
IServiceProvider provider = scope;
object? service = provider.GetService(typeof(SomeType));
options.UseMiddleware overload.#718 Simplify integration with IStringLocalizer and IStringLocalizer<T> by adding an UseLocalization() extension method. Implemented by @kwlin.
Usage:
app.UseSimpleInjector(container, options =>
{
options.UseLocalization();
});
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
container.Options.UseFullyQualifiedTypeNamesContainer.Collection.Append overloads.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Container.RegisterConditional(Type, Func<TypeFactoryContext, Type>, Lifestyle, Predicate<PredicateContext>) overload, Simple Injector would invalidly supply the Func<TypeFactoryContext, Type> delegate with a TypeFactoryContext instance whose Consumer property invalidly contained a non-null value, when the service type was resolved as root type.. This regression was introduced in v4.5.2.This release can be downloaded using NuGet.
This release can be downloaded using NuGet.
The most prominent improvements in this release are:
IServiceCollection, such as .NET Core Console Applications and .NET Core 2.1 Generic Host. Read the documentation here and here for more details.ExpressionBuiltEventArgs ctor marked obsolete.SimpleInjector.Scope default ctor marked obsolete.Container.Collection.Append(Type, Type, Lifestyle) overload.System.Object methods (ToString, GetHashCode, Equals, and GetType) are now hidden from common API classes when using IntelliSense.This is a new integration package that aims to simplify cross wiring on top of ServiceCollection. It contains the core functionality that is used by Generic Host and ASP.NET Core integration packages. See the documentation for more details.
This is a new integration package that simplifies working with .NET Core 2.1 Generic Host applications. It can be use both as part of your ASP.NET Core application and as .NET Core Console application. See the documentation for more details.
Nothing published for this version
Nothing published for this version
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Container.RegisterConditional(Type, Func<TypeFactoryContext, Type>, Lifestyle, Predicate<PredicateContext>) overload, Simple Injector would invalidly supply the Func<TypeFactoryContext, Type> delegate with a TypeFactoryContext instance whose Consumer property invalidly contained a non-null value, when the service type was resolved as root type.. This regression was introduced in v4.5.2.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
InjectionConsumerInfo.Equals can throw a NullReferenceException.Container.GetRegistration and Container.GetService methods lack null check.InjectionTargetInfo.Equals can throw a NullReferenceException.Scope instances when there is no active scope.Scoped decorators using 'decorator-type factory' fails with NullReferenceException on uncontrolled collections.Func<Scope, T> decoratee factory with a container-less Scope throws NullReferenceException.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Contains and IndexOf.This release can be downloaded using NuGet.
This release can be downloaded using NuGet.
The most prominent improvements in this release are:
Container.ContainerScope property that allows access to the singleton Scope.Options.ResolveUnregisteredConcreteTypes switch that allows disabling resolving unregistered concrete types. Users are advised to change the setting to false. This prevents surprises in the future, as we are changing the default behavior to false in v5.0.SimpleInjector.Integration.AspNetCore.Mvc package contains a new SimpleInjectorPageModelActivatorProvider class that can be added to ASP.NET's IServiceCollection and a container.RegisterPageModels(app) extension method that can be used to register Razor Page Models.AdvancedExtensions.IsVerifying(Container) extension method was made obsolete. You can use the Container.IsVerifying property instead.Container.Options.ResolveUnregisteredConcreteTypes switch introduced that allows disabling resolving unregistered concrete types.VisualizeObjectGraph). Special thanks to our new contributor @kwlin for implementing this.Container.ContainerScope property allows access to the container-global Scope, which can be used to register objects for disposal and execute delegates when the container is disposed, while allowing to retrieve created disposables, which enables async dispose.Collection.Append and Collection.AppendInstance overloads added that simplify appending registrations (and instances) to collections.WebRequestLifestyle from reusing the same Scope instance over multiple containers inside the same web request.ThreadLocal<T> from the decorator sub system, which could cause memory leaks in case the user didn't dispose the container.This beta release can be downloaded using NuGet.
This beta release can be downloaded using NuGet.
The most prominent improvements in this release are:
ContainerScope that allows access to the singleton Scope.AdvancedExtensions.IsVerifying(Container) extension method was made obsolete. You can use the Container.IsVerifying property instead.VisualizeObjectGraph). Special thanks to @kwlin for implementing this.Container.ContainerScope property allows access to the container-global Scope, which can be used to register objects for disposal and execute delegates when the container is disposed, while allowing to retrieve created disposables, which enables async dispose.Collection.Append and Collection.AppendInstance overloads added that simplify appending registrations (and instances) to collections.SimpleInjectorPageModelActivatorProvider that can be registered and a container.RegisterPageModels(app) extension method that can be used to register Razor Page Models.WebRequestLifestyle from reusing the same Scope instance over multiple containers inside the same web request.ThreadLocal<T> from the decorator sub system, which could cause memory leaks in case the user didn't dispose the container.Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
Simple Injector can be downloaded using NuGet.
This release can be downloaded using NuGet.
This release can be downloaded using NuGet.
The most prominent improvements are:
List<T> and Collection<T> dependencies.List<T> and Collection<T> dependencies are now supported out of the box. Any collection, registered using Collection.Register can now be injected and resolved as either a List<T> or Collection<T>.AutoCrossWireAspNetComponents overload added that accepts IServiceProvider.Registration instances through Collection.Register and Collection.Append failed.EnableHttpRequestMessageTracking under .NET <= 4.6.x could cause a memory leak.SimpleInjectorControllerActivator will not resolve unregistered controllers from ASP.NET Core anymore.One column per quarter.