Stories recently tagged with 'Unity'

Automatic Factories With Unity 2.0(www.machinaaurum.com.br)

submitted by xunilrjxunilrj(70) 1 year, 11 months ago

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. read more...

add a comment |category: |Views: 164

tags: another

Unity InterfaceInterceptor doesn't support interface inheritance(timcools.net)

submitted by TimCoolsTimCools(40) 2 years, 8 months ago

The InterfaceInterceptor from Unity (Enterprise Library) is broken because it doesn't support interface inheritance. This post contains the solution. read more...

add a comment |category: |Views: 55

tags: another

Making Unity work more like the others(chrisvandesteeg.nl)

submitted by alleyalley(2840) 2 years, 9 months ago

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 exception when Resolve<T> is not able to resolve the given type: I’d prefer it to return null instead, hence most containers do that. The second, even more irritating point, was that ResolveAll<T> only returned the named instances/types instead of all registered types read more...

1 comment |category: |Views: 188

tags: another

Integrating Unity with WCF(initializecomponent.blogspot.com)

submitted by rayhenryrayhenry(100) 2 years, 10 months ago

Shows how you can use Unity to resolve dependencies within a WCF Service. read more...

add a comment |category: |Views: 123

tags: another

Dependency Injection in ASP.NET MVC NerdDinner.com Application(weblogs.asp.net)

submitted by mvcguymvcguy(235) 2 years, 10 months ago

Demonstrating how to apply Dependency Injection in the ASP.NET MVC NerdDinner.com application using Microsoft Unity Application Block. read more...

add a comment |category: |Views: 70

tags: another

Use Event Aggregator to make your application more extensible(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 2 years, 11 months ago

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 for DotNetShoutout). Since it is a new requirement, initially I have modified the StoryService constructor to include the twitter client as a new argument and use it after the story is added in the database, the code is something like the following:... read more...

1 comment |category: |Views: 406

tags: another

Use Event Aggregator to make your application more extensible(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 2 years, 11 months ago

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 for DotNetShoutout). Since it is a new requirement, initially I have modified the StoryService constructor to include the twitter client as a new argument and use it after the story is added in the database, the code is something like the following:... read more...

1 comment |category: |Views: 406

tags: another

Implementing UnitOfWork Pattern In Linq To SQL Application(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 2 years, 11 months ago

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 my ongoing UnityCommonServiceLocatorMVC project. Lets assume that in your ASP.NET MVC application you have a method in your controller which will add a category and its associate product in the Northwind database. read more...

add a comment |category: |Views: 562

tags: another

Implementing UnitOfWork Pattern In Linq To SQL Application(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 2 years, 11 months ago

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 my ongoing UnityCommonServiceLocatorMVC project. Lets assume that in your ASP.NET MVC application you have a method in your controller which will add a category and its associate product in the Northwind database. read more...

add a comment |category: |Views: 562

tags: another

Implementing UnitOfWork Pattern In Linq To SQL Application(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 2 years, 11 months ago

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 my ongoing UnityCommonServiceLocatorMVC project. Lets assume that in your ASP.NET MVC application you have a method in your controller which will add a category and its associate product in the Northwind database. read more...

add a comment |category: |Views: 562

tags: another

ASP.NET MVC, Unity and Common Service Locator(weblogs.asp.net)

submitted by iftekharahmedamitiftekharahmedamit(530) 2 years, 11 months ago

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. But unlike the other containers it does not have any PerWebRequest... read more...

add a comment |category: |Views: 256

tags: another

IoC libraries compared(elegantcode.com)

submitted by cwbrandsmacwbrandsma(1711) 3 years, 1 month ago

A comparison of how to initialize various IoC libraries. Including AutoFac, Ninject, Spring.Net, StructureMap, Unity, and Windsor. read more...

add a comment |category: |Views: 690

tags: another

Comparing .NET DI (IoC) Frameworks, Part 2(blog.ashmind.com)

submitted by ashmindashmind(775) 3 years, 5 months ago

A second part of popular IoC frameworks comparison. read more...

add a comment |category: |Views: 513

tags: another

Unity - Dependency Injection and Inversion of Control Container(dotnethitman.spaces.live.com)

submitted by misbaharefinmisbaharefin(845) 3 years, 5 months ago

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 how a dependency is obtained from the core concerns of a boundary. This improves reusability by enabling components to be supplied with dependencies which may vary depending on context. read more...

add a comment |category: |Views: 366

tags: another

Using Unity Injection API(blogs.microsoft.co.il)

submitted by gilfgilf(2123) 3 years, 6 months ago

The post shows some aspects of how to use the Unity application block injection API. read more...

add a comment |category: |Views: 41

tags: another

Working with Generic Types in Unity Configuration Section(blogs.microsoft.co.il)

submitted by gilfgilf(2123) 3 years, 6 months ago

The post explain how to register generic types in the Unity configuration section and shows how to use the registered types in code. read more...

add a comment |category: |Views: 269

tags: another