Unity

20
MEF vs. any IoC
Looking at Microsoft's Managed Extensibility Framework (MEF) and various IoC containers (such as Unity), I am failing to see when to use one type of... PureCognition
17
how to implement IOC without a global static service (non-service locator solution)?
Hi, we want to use Unity for IOC. All i've seen is the implementation that there is one global static service (let's call it the the IOCService)... Michel
17
Why shouldn't I use Unity?
I'm using the Unity IoC container. It really wasn't a decision I made, it just came with Prism, and I've just stuck with it. I've never used any... stiank81
17
Can I pass constructor parameters to Unity's Resolve() method?
I am using Microsoft's Unity for dependency injection and I want to do something like this: IDataContext context =... NotDan
13
Singleton Per Call Context (Web Request) in Unity
Hi, A few days ago I had this issue with ASP.Net threading. I wanted to have a singleton object per web request. I actually need this for my unit of... Mehdi Khalili
11
Comparing Castle Windsor, Unity and StructureMap
In a follow up to Krzysztof’s statement that Windsor does a lot more than other IoC’s, I wanted to understand how these IoC’s stack up against each... Quintin Par
11
Is MEF a dependency injection framework ?
The recently announced managed extensibility framework (MEF) of .NET 4.0 - is it a dependency injection framework? Will Microsoft Unity from Patterns... bitbonk
10
Ninject vs Unity for DI
We are using ASP.net MVC. Which of these is the best DI framework Ninject or Unity and why? Miral
10
Using ASP.NET Session for Lifetime Management (Unity)
I am considering using Unity to manage the lifetime of a custom user class instance. I am planning on extending the LifetimeManager with a custom... user
10
Best Practices for IOC Container
I'm using the Unity IOC container and I'm just wondering what is the best best way to access the container for multiple classes. Should every class... Ryu
9
Taking my MVC to the next level: DI and Unit of Work
I have looked at simpler applications like Nerddinner and ContactManager as well as more complicated ones like Kigg. I understand the simpler ones... Thomas
9
Is there a good/proper way of solving the dependency injection loop problem in the ASP.NET MVC ContactsManager tutorial?
If you don't know what I'm talking about either go through the tutorial and try to add dependency Injection yourself or try your luck with my... JohannesH
9
How do you reconcile IDisposable and IoC?
I'm finally wrapping my head around IoC and DI in C#, and am struggling with some of the edges. I'm using the Unity container, but I think this... Mr. Putty
7
Use of IsAssignableFrom and "is" keyword in C#
While trying to learn Unity, I keep seeing the following code for overriding GetControllerInstance in... fearofawhackplanet
7
Getting Started with Unity Framework
Could anyone recommend some good resources for getting started with the Unity framework? I've downloaded the source from Codeplex and got it to... Steve
6
Registering NUnit DynamicMock Instances in a UnityContainer
I'm somewhat new to Unity and dependency injection. I'm trying to write a unit test that goes something like this: [Test] public void Test() { ... Phil
6
Can someone explain Microsoft Unity?
I've been reading the articles on MSDN about Unity (Dependency Injection, Inversion of Control), but I think I need it explained in simple terms (or... Rorschach
5
Can Unity be made to not throw SynchronizationLockException all the time?
The Unity dependency injection container has what seems to be a widely known issue where the SynchronizedLifetimeManager will often cause the... Rory MacLeod
5
Is it better to create a singleton to access unity container or pass it through the application?
I am dipping my toe into using a IoC framework and I have choosen to use Unity. One of the things that I still don't fully understand is how to... btlog
5
Unity vs Torque game engines and IDE environment
I want to get people's opinion of Torque and Unity and their IDE tools. You build Torque games using one of their engines (I'm currently interested... milesmeow
5
Strategy Pattern and Dependency Injection using Unity
I am finally getting my feet wet with Dependency Injection (long overdue); I got started playing with Unity and run into an issue with the strategy... Mathias
5
ASP.NET MVC and Unity 1.2 Container question.
I am trying to use the Unity container to make it easier to unit test my controllers. My controller uses a constructor that accepts an interface to a... Rick
5
Using Unity Application Block in commercial programm (Ms-PL)
Hello, i´have read the Ms-PL under the Homepage of Unity, but its not clear for me what i need to do, when i use Unity in my commercial programm? I... Jehof
5
Unity framework DependencyAttribute only works for public properties?
I was trying to clean up some accessability stuff in my code, and inadvertently broke Unity dependency injection. After a while I realized that I... rally25rs
5
Resolving classes without registering them using Castle Windsor
Take the following useless program: class Program { static void Main(string[] args) { IUnityContainer unityContainer = new... James Thurley
4
Javascript - what kind of declaration is this?
I come from other programming languages and I am new to Javascript. I am trying to understand what a Javascript code is doing. I found this line var... Digital Robot
4
Forwarded Types in Microsoft Unity
How to use single component for multiple services in Unity Framework? In Windsor it is configured in the following way: var container = new... Rationalle
4
Unity Container: Using PerResolveLifetimeManager and custom interception
Hey, I'm trying to implement my own interception while still using the Unity container. I want to do this in such a way where it respects the... lotrij
4
Using Unity Framework & Validation Application Block to Validate Method Parameters
Question Is it posible to have the Validation.Validate() method of the Validation Application Block see each parameter of the IParameterCollection... Paul
4
Unity framework - reusing instance
nobody loved my first question about... TobyEvans
 
0.306119918823