Move to VS integrated code analysis.

Currently, static code analysis on the Simple Injector code base is done using the stand-alone FxCop tool. With never version of Visual Studio (such as the community edition of VS2013) static code ...

Id #20998 | Release: None | Updated: Jan 24 at 11:10 AM by dot_NET_Junkie | Created: Jan 24 at 11:10 AM by dot_NET_Junkie

Torn lifestyle warning not signaled in case of registration of collections

The following code demonstrates the bug: public interface IUserService { } public class SomeMessage { } public interface IHandler<T> { } public class UserService : IUserService, IHandler<SomeMessa...

Id #20997 | Release: None | Updated: Tue at 11:38 AM by dot_NET_Junkie | Created: Jan 23 at 3:45 PM by dot_NET_Junkie

Generic decorators can't be nested

I have a standard command: sealed class ReassignWorkItemHandler : ICommandHandler<ReassignWorkItem> { private readonly IServiceClient service; public ReassignWorkItemHandler(IServiceClient servic...

Id #20995 | Release: None | Updated: Jan 18 at 10:42 AM by dot_NET_Junkie | Created: Jan 17 at 11:19 AM by dot_NET_Junkie

RegisterOpenGeneric does not resolve type with deducable type argument on full version

See the following definition: public interface ICommandHandler<TCommand> { } public class SpecialEntity { } public class UpdateCommand<TEntity> { } public class UpdateCommandHandler<TEntity, TCom...

Id #20994 | Release: None | Updated: Jan 18 at 9:23 AM by dot_NET_Junkie | Created: Jan 16 at 11:54 AM by dot_NET_Junkie

RegisterWebApiFilterProvider and RegisterMvcIntegratedFilterProvider do not warn about non-singleton dependencies

Filter attributes in MVC and Web API are cached and basically become singletons as described here: https://stackoverflow.com/questions/27646196/asp-net-web-api-caches-action-filter-attributes-acros...

Id #20993 | Release: None | Updated: Jan 13 at 9:53 AM by dot_NET_Junkie | Created: Jan 13 at 9:53 AM by dot_NET_Junkie

SimpleInjector.Diagnostics mscorlib & System.Core issue

Project is targeted for .net framework 4.5.1. During compilation I get the warning about mscorlib & System.Core: 2> There was a conflict between "System.Core, Version=4.0.0.0, Culture=neutral, ...

Id #20992 | Release: None | Updated: Jan 13 at 2:51 PM by dot_NET_Junkie | Created: Jan 12 at 10:08 AM by KonstKopytov

Make RegisterWebApiControllers more testable

For more information, see this stackoverflow q/a: https://stackoverflow.com/questions/26704486/container-registerwebapicontrollersglobalconfiguration-configuration-causes-in

Id #20990 | Release: None | Updated: Jan 14 at 5:25 PM by dot_NET_Junkie | Created: Dec 25, 2014 at 10:38 PM by dot_NET_Junkie

Nested execution scope within Web API

In my WebAPIConfig.cs file i am registering an IRequestMessageProvider container.EnableHttpRequestMessageTracking(GlobalConfiguration.Configuration); container.RegisterWebApiRequest<IRequestMessag...

Id #20987 | Release: None | Updated: Dec 23, 2014 at 8:47 PM by devteamexpress | Created: Dec 23, 2014 at 2:31 PM by devteamexpress

Improve exception message in case of registering type with primitive value

source: https://stackoverflow.com/questions/27107450/register-boolean-in-container When resolving a type with a primitive dependency in its constructor, the container currently throws a message s...

Id #20986 | Release: Simple Injector v2.7 | Updated: Jan 13 at 10:47 AM by dot_NET_Junkie | Created: Nov 24, 2014 at 3:33 PM by dot_NET_Junkie

Let AppendToCollection accept open-generic types

Since v2.6 RegisterAll allows registering open-generic types as well, but it is currently impossible to append open generic types to collections. This is actually a quite nasty one to implement, ...

Id #20985 | Release: Simple Injector v2.7 | Updated: Dec 26, 2014 at 2:05 PM by dot_NET_Junkie | Created: Nov 17, 2014 at 9:51 PM by dot_NET_Junkie