Attempting to register an object created with RealProxy.GetTransparentProxy() method:
var fooProxy = new FooProxy(); // class FooProxy : RealProxy
var foo = (IFoo)fooProxy.GetTransparentProxy();
Id #12774 | Release:
| Updated: Mar 5 at 5:10 PM by scottstubbs | Created: Mar 5 at 5:10 PM by scottstubbs
Firstly let me explain how much I LOVE Unity. It is by far my favourite (sorry, UK spelling!) dependency injection library - even outside of .NET.
I personally find that explicitly defining my DI...
Id #12773 | Release:
| Updated: Feb 7 at 12:51 PM by tommed | Created: Feb 7 at 12:40 PM by tommed
It would be very useful to provide a dynamic implementation of the interface at runtime.
A common scenario it would enable is automatic typed factories. Consider the class and interface below:
Id #12772 | Release:
| Updated: Jan 31 at 1:38 PM by tom103 | Created: Jan 31 at 1:38 PM by tom103
It appears that when make use of Design time configuration with Unity, it does not like if the type you are mapping to exists in a file with other types. In my case I have an interface that inherit...
Id #12771 | Release:
| Updated: Dec 24, 2014 at 12:28 PM by arifkh | Created: Dec 23, 2014 at 10:01 PM by arifkh
As part of the example code for MediatR on GitHub there are a number of implementations for different IoC containers.
The example sets up a number of Notification handlers which the mediator publ...
Id #12770 | Release:
| Updated: Dec 16, 2014 at 6:06 PM by randylevy | Created: Dec 16, 2014 at 2:53 PM by WestDiscGolf
Please implement the System.IServiceProvider interface.
It's a no-brainer and not a breaking change of any kind.
Will help integrate the Dependency inversion principle into 3rd party applications...
Id #12769 | Release:
| Updated: Nov 1, 2014 at 2:59 PM by abatishchev | Created: Nov 1, 2014 at 6:15 AM by abatishchev
Reproducible with the following example:
class Foo<TBar> : IFoo<TBar> where TBar : IBar
Id #12768 | Release:
| Updated: Oct 29, 2014 at 6:30 PM by randylevy | Created: Oct 29, 2014 at 5:29 PM by OliverHallam
After doing an update of all NuGet packages, one of my applications began crashing on start-up with a FileLoadException:
Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Versio...
Id #12767 | Release:
| Updated: Apr 9 at 2:02 AM by Eason | Created: Oct 20, 2014 at 10:29 PM by CharlieHess
This is a very odd error. It pops up sporadically, with no apparent cause. So here is what I did:
I have a WPF application that targets .NET 4.5
I installed Unity from NuGet, and added a contain...
Id #12766 | Release:
| Updated: Oct 8, 2014 at 6:19 PM by cjrogala | Created: Oct 8, 2014 at 6:19 PM by cjrogala
I need to register types in Unity.Config file and have this issue where remote object cannot be registered when done from the XML Configuration file. For e.g: This works
Id #12765 | Release:
| Updated: Sep 22, 2014 at 2:49 AM by randylevy | Created: Sep 19, 2014 at 6:51 PM by RMK_P