Simple Injector v3.3.1

@dotnetjunkie dotnetjunkie released this Nov 23, 2016 · 2 commits to v3.3.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.3.1 is a patch release that contains one bug fix.

Fixes and improvements for the SimpleInjector.dll

  • PredicateContext.Consumer.ServiceType property contained incorrect value when the parent/consumer of a conditional registration was an open-generic registration.(fixes #333)

You can download Simple Injector from NuGet.

Downloads

Simple Injector v3.3

@dotnetjunkie dotnetjunkie released this Nov 15, 2016 · 3 commits to v3.3.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.

The most prominent changes in Simple Injector v3.3 are the addition of the Container.Options.DefaultLifestyle property to simplify changing the default lifestyle and the deprecation of old API that will be removed in v4.

Please goto NuGet to download this release.

New features and improvements for the SimpleInjector.dll

  • Added ContainerOptions.DefaultLifestyle property to make it easier to override the default (transient) lifestyle. (fixes #313)
  • Improved error message in case a registration couldn't be resolved caused by incorrect dynamic assembly loading. (fixes #325)
  • Marked ContainerOptions.ResolveUnregisteredCollections obsolete. (fixes #303)
  • Removed unneeded dependencies in .NETStandard NuGet release. (fixes #312)

New features and improvements for the SimpleInjector.Integration.Web.dll

  • Marked RegisterPerWebRequest extension method obsolete. (fixes #303)

New features and improvements for the SimpleInjector.Integration.Wcf.dll

  • Marked RegisterPerWcfOperation and GetCurrentWcfOperationScope methods obsolete. (fixes #303)
  • Marked WcfOperationLifestyle ctor overloads that allow controlling disposal obsolete. (fixes #307)
  • Marked WebRequestLifestyle ctor overloads that allow controlling disposal obsolete. (fixes #307)

New features and improvements for the SimpleInjector.Extensions.LifetimeScoping.dll

  • Marked RegisterLifetimeScope and GetCurrentLifetimeScope methods obsolete. (fixes #303)
  • Marked LifetimeScopeLifestyle ctor overloads that allow controlling disposal obsolete. (fixes #307)

New features and improvements for the SimpleInjector.Integration.WebApi.dll

  • Marked RegisterWebApiRequest method obsolete. (fixes #303)
  • Marked WebApiRequestLifestyle ctor overloads that allow controlling disposal obsolete. (fixes #307)

New features and improvements for the SimpleInjector.Extensions.ExecutionContextScoping.dll

  • Marked ExecutionContextScopeLifestyle ctor overloads that allow controlling disposal obsolete. (fixes #307)

Downloads

Simple Injector v3.2.3

@dotnetjunkie dotnetjunkie released this Oct 16, 2016 · 5 commits to v3.2.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.2.3 is a patch release that contains one bug fix.

Fixes and improvements for the SimpleInjector.dll

  • Resolving generic type with type argument that maps to multiple concrete types of other type argument failed (fixes #316)

You can download Simple Injector from NuGet.

Downloads

Simple Injector v3.2.2

@dotnetjunkie dotnetjunkie released this Aug 26, 2016 · 11 commits to v3.2.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.2.2 is a patch release that contains two bug fixes.

Fixes and improvements for the SimpleInjector.dll

  • Simple Injector core library is now compatible with .NETStandard 1.0 which allows it to run with Xamarin.Android and MonoDroid (fixes #262 and #263).
  • Working with IReadOnlyCollection and IReadOnlyList failed with the .NET Core and .NETStandard compatible version (fixes #289).

Fixes and improvements for the SimpleInjector.Extensions.LifetimeScoping.dll

  • Library is now compatible with .NETStandard 1.0.

Fixes and improvements for the SimpleInjector.Extensions.ExecutionContextScoping.dll

  • Library is now compatible with .NETStandard 1.3.

You can download Simple Injector from NuGet.

Downloads

Simple Injector v3.2

@dotnetjunkie dotnetjunkie released this Jun 28, 2016 · 92 commits to master since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v3.2 contains two main features and several smaller improvements.

  1. The most prominent feature is the compatibility with .NET Core v1 RTM. We are glad that the moving target has stopped moving :)
  2. Besides that, Simple Injector now has a simplified model for developers that work with platforms that lack proper ambient contexts (like Windows RT). Historically, Simple Injector always depended on ambient contexts such as HttpContext, WCF scoping, and things like AsyncLocal and ThreadLocal to do its scoping. Platforms like RT are truly asynchronous, but currently lack a proper async ambient context. Simple Injector v3.2 now allows resolving directly from the Scope object, and allows injecting Scope instances into constructors of components. This prevents going through hoops to get Simple Injector working in those types of applications. We will add a new page to our documentation that explains how to use this. Of course we still support our normal model, and for most application types, our advice is to keep using this model.

New features and improvements for the SimpleInjector.dll

  • Compatibility with .NET Core RTM.
  • Simplified working with Simple Injector on platforms without ambient context. (fixes #226)
  • Added configuration switch that makes Simple Injector output fully qualified type information in exception messages. (fixes #182)
  • Changes Lifestyle.CreateProducer<TService>(Func<TService>, Container) to return InstanceProducer<T> instead of InstanceProducer. (fixes #244)
  • Add Container.GetOrSetItem extension method to make it easier to atomically get and set items from the items dictionary. (fixes #231)
  • Prevented first change exceptions in several occasions. (#230 and #242)

New features and improvements for the SimpleInjector.Integration.Web.Mvc.dll

  • NuGet package noww references Microsoft.Web.Mvc NuGet package instead of GAC version. (fixes #218)

New features and improvements for the SimpleInjector.Integration.Wcf.dll

  • Allowed WCF services to be resolved as interfaces. (fixes #220)

Downloads

Simple Injector v3.1.4

@dotnetjunkie dotnetjunkie released this May 1, 2016 · 5 commits to v3.1.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.4 is a patch release that contains one bug fix.

Fixes and improvements for the SimpleInjector.dll

  • Torn lifestyle was invalidly thrown when multiple InstanceProducers for the same service type where wrapped with multiple decorators. (fixes #228)

You can download Simple Injector from NuGet.

Downloads

Simple Injector v3.1.3

@dotnetjunkie dotnetjunkie released this Apr 12, 2016 · 7 commits to v3.1.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.3 is a patch release that contains several small improvements and bug fixes to both the core library and some of the integration libraries.

Fixes and improvements for the SimpleInjector.dll

  • Conditional registration for closed-generic types replaced earlier registrations instead of being appended. (fixes #186)
  • Mixing conditional and unconditional registrations for same closed-generic type did not fail at registration time. (fixes #217)
  • Registration of conditional closed-generic types prevented when container allows overriding registrations. (fixes #216)
  • Improved exception message when resolving unregistered collections. (fixes #204)
  • URL to documentation added to "container can't be changed" exception message. (fixes #177)

Fixes and improvements for the SimpleInjector.Integration.Wcf.dll

  • WCF integration failed to create WCF services marked with InstanceContextMode.Single. (fixes #197)

Fixes and improvements for the SimpleInjector.Integration.Web.dll

  • SimpleInjector.Integration.Web NuGet package now references the Microsoft.Web.Infrastructure NuGet package instead of the Microsoft.Web.Infrastructure.dll from the GAC. (fixes #170)

Downloads

Simple Injector v3.1.2

@dotnetjunkie dotnetjunkie released this Dec 13, 2015 · 55 commits to v3.1.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.2 is a patch release that fixes two small issues with scoping and adds support for DNXCORE50/CoreCLR.

Fixes and improvements for the SimpleInjector.dll

  • Memory usage of Scope instances reduced after scope is disposed. (fixes #160)
  • DNXCORE50/CoreCLR version available. (fixes #57)

Fixes and improvements for the SimpleInjector.Extensions.ExecutionContextScoping.dll

  • GetCurrentExecutionContextScope() will never return disposed scopes anymore. (fixes #159)
  • DNXCORE50/CoreCLR version available. (fixes #57)

Fixes and improvements for the SimpleInjector.Extensions.LifetimeScoping.dll

  • GetCurrentLifetimeScope() will never return disposed scopes anymore. (fixes #159)
  • DNXCORE50/CoreCLR version available. (fixes #57)

Downloads

Simple Injector v3.1.1

@dotnetjunkie dotnetjunkie released this Nov 23, 2015 · 76 commits to v3.1.x since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. Please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v.3.1.1 is a patch release that fixes two bugs in the core library, one memory leak fix and one related to the diagnostic system.

Bug #135 caused a Container instance to keep rooted, and thus prevented the container and all its dependent object from being collected by the GC, in case decorators where applied. This causes a memory leak in applications that create an undefined number of container instances during the lifetime of the application. Do note that in case you are creating many container instances throughout the lifetime of the application, you should call Container.Dispose to prevent the memory leak.

Bug #140 prevented the container from detecting an Lifestyle Mismatch in an object graph when calling GetInstance. The problem only appeared in case Verify() was not called, or when objects were resolved that were not registered explicitly (or were registered as open-generic type, while not being referenced as closed-generic type by other registered types). Do note that this bug fix might cause an exception to be thrown in applications that seem to run correctly in v3.1.0, because the Lifestyle Mismatch was not detected before.

Downloads

Simple Injector v3.1

@dotnetjunkie dotnetjunkie released this Oct 9, 2015 · 226 commits to master since this release

Release Notes

If you're upgrading from v2.x, please make sure you upgrade your application to the latest 2.8.x version of Simple Injector first. please read the v3.0 release notes before upgrading to v3.x.

Simple Injector v3.1 adds new convenient overloads that give more control when making batch or conditional registrations and improved some exception messages.

New features and improvements for the SimpleInjector.dll

  • Lifestyle.CreateProducer<TService>(Type, Container) overload added. (fixes #100)
  • Container.RegisterConditional overload added that accepts a Registration instance. This adds extra flexibility and allows using conditional registrations using delegates. (fixes #102)
  • Container.GetTypesToRegister overload added that accepts an TypesToRegisterOptions to allow excluding composites and including decorators and generic type definitions. (fixes #122)
  • RegisterCollection overloads that accept a list of assemblies, now suppress composite types. (fixes #119)
  • Improved performance of GetTypesToRegister method and the Register and RegisterCollection overloads that accept a list of collections.
  • Check added to InstanceProducer constructor to prevent incompatible Registration objects from being supplied. (fixes #52)
  • Exception message improved in case batch-registration skipped decorator. (fixes #13)
  • Lifestyle.CreateRegistration and Container.AddRegistration methods now throws a clear exception explaining that open generic types can't be supplied. (fixes #126)
  • Expection message improved for types with multiple constructors. The exception message now references the documentation about this subject.

Downloads