By tag: unity
0
kicks
Unity Convention Based Registration
Convention based type registration for the Unity IOC container
0
kicks
No More Abstract Factory Pattern With Inversion of Control
No need to have factory classes, instead you can cut the amount of code you write and use Func<> as the factory. Nice :)
0
kicks
Automatic Factories With Unity 2.0
Unity 2.0 comes with new features. But the feature i want to talk about is "Automatic Factory". This feature is useful when one class has a dependency in another but may not need to have the instance of dependency in the constructor. Or, just want to create the dependency in another time.
0
kicks
Unity InterfaceInterceptor doesn't support interface inheritance
The InterfaceInterceptor from Unity (Enterprise Library) is broken because it doesn't support interface inheritance. This post contains the solution.
0
kicks
Making Unity work more like the others
I love MS Unity as an IoC container, it has some great features. Though I found it to function incorrectly at two points (it’s not that the path chosen by the Unity team is incorrect, I just want/excpect it to act differently).
The first thing that bothered me was the fact that Unity throws an ex...
0
kicks
Integrating Unity with WCF
Shows how you can use Unity to resolve dependencies within a WCF Service.
0
kicks
Dependency Injection in ASP.NET MVC NerdDinner.com Application
Demonstrating how to apply Dependency Injection in the ASP.NET MVC NerdDinner.com application using Microsoft Unity Application Block.
0
kicks
Use Event Aggregator to make your application more extensible
Recently, in KiGG/DotNetShoutout we have integrated Twitter, nothing complex, very basic thing like when a story is submitted or appears in the front page it will broadcast in Twitter and like our feed it will post the short url of the original story (Cant resist to do some shameless marketing f...
0
kicks
Implementing UnitOfWork Pattern In Linq To SQL Application
Implementing UnitOfWork Pattern In Linq To SQL Application
In my previous post, I have shown how to create Linq to Sql Repository which will have the maximum code coverage, In this post, I will show a simple UnitOfWork class which will flash the changes back to your database. I will be again use...
0
kicks
ASP.NET MVC, Unity and Common Service Locator
In this post, I will show you how can you extend Microsoft Patterns & Practices Unity Application Block and use it in ASP.NET MVC in conjunction with Patterns & Practices Common Service Locator. Extending Unity Unity is a dependency injection container from MS Patterns & Practices team. ...
0
kicks
IoC libraries compared
A comparison of how to initialize various IoC libraries. Including AutoFac, Ninject, Spring.Net, StructureMap, Unity, and Windsor.
0
kicks
Unity - Dependency Injection and Inversion of Control Container
Dependency injection is a programming technique to reduce component coupling. Dependency injection is also commonly known as “inversion of control” or IoC or sometimes as The Hollywood Principle - "Don’t call us, we’ll call you”. The goal of dependency injection is to separate the concerns of h...
0
kicks
Comparing .NET DI (IoC) Frameworks, Part 2
A second part of popular IoC frameworks comparison.
0
kicks
Using Unity Injection API
The post shows some aspects of how to use the Unity application block injection API.
0
kicks
Working with Generic Types in Unity Configuration Section
The post explain how to register generic types in the Unity configuration section and shows how to use the registered types in code.