It is possible to define a type that has multiple implementations which can each be registered separately in the container. When doing this it may not always be clear exactly which instance will be...
Id #20975 | Release:
| Updated: Sep 30 at 8:45 PM by dot_NET_Junkie | Created: Sep 30 at 8:17 PM by qujck
tl;dr: the container cannot guess how to close an open generic type for verification.
The diagnostic services cannot verify an open generic that is not explicitly defined somewhere else within th...
Id #20974 | Release:
| Updated: Sep 30 at 8:42 PM by dot_NET_Junkie | Created: Sep 30 at 8:06 PM by qujck
The API currently differentiates the registration of open generic types on the one side and closed generic and non-generic on the other side. Open generics are registered using RegisterOpenGeneric ...
Id #20973 | Release:
| Updated: Sep 29 at 8:41 PM by dot_NET_Junkie | Created: Sep 29 at 8:41 PM by dot_NET_Junkie
The current implementation of RegisterAll allows registering a set of non-generic or closed generic implementations of a non-generic or closed-generic abstraction.
The current implementation of Re...
Id #20971 | Release:
| Updated: Sep 29 at 8:34 PM by dot_NET_Junkie | Created: Sep 26 at 10:20 PM by dot_NET_Junkie
The container will always create an instance of the requested type. Because of this reason it is impossible to request an open-generic type. Open-generic types can't be created by the .NET runtime....
Id #20970 | Release:
| Updated: Sep 26 at 10:03 PM by dot_NET_Junkie | Created: Sep 24 at 6:22 PM by dot_NET_Junkie
Simple Injector contains a cyclic dependency detection mechanism that detect most cyclic dependencies and it prevents a StackOverflowException from being thrown.
Unfortunately this mechanism fai...
Id #20969 | Release:
| Updated: Sep 20 at 10:11 AM by dot_NET_Junkie | Created: Sep 19 at 3:36 PM by dot_NET_Junkie
I'm using Simple Injector Wcf Integration Quick Start Nuget package (2.5.2).
WCF Service uses named pipe binding (net.pipe). Without Injector service works fine. But with it I see this ...
Id #20967 | Release:
| Updated: Aug 20 at 6:22 PM by sobuctb | Created: Aug 20 at 2:50 PM by sobuctb
See related discussion.
Id #20962 | Release:
| Updated: Sep 22 at 11:43 AM by dot_NET_Junkie | Created: Aug 2 at 10:09 PM by dot_NET_Junkie
Add a rule to the diagnostic services that warn when a component is registered as transient that implements IDisposable. The transient lifestyle does not dispose any instances, so this might be an ...
Id #20957 | Release:
| Updated: Aug 3 at 12:06 AM by qujck | Created: Jul 20 at 7:06 PM by dot_NET_Junkie
Because of backwards compatibility the container allows wrapping elements of container uncontrolled collections with decorators that are registered as singleton. This can however easily go wrong, w...
Id #20953 | Release:
| Updated: Aug 2 at 11:05 PM by dot_NET_Junkie | Created: Jun 9 at 12:37 PM by dot_NET_Junkie