DotNetShoutout - Stories tagged with Unity
13
Shouts

Introducing Unity.WCF - providing easy IoC integration for your WCF services

published 482 days, 9 hours, 21 minutes ago posted by devtrendsdevtrends 491 days, 11 hours, 7 minutes ago
Friday, January 27, 2012 6:15:02 PM GMT Wednesday, January 18, 2012 4:29:28 PM GMT
There are numerous blog posts available that explain how to hook up Unity with WCF. Unfortunately, many of these are incomplete, too basic or just plain wrong. Additionally, as far as I can tell, nobody has created a NuGet package to get you up and running as quickly as possible. This post introduces Unity.WCF, an open source NuGet package that (hopefully) just works in most situations, deals with cleaning up IDisposable instances and also provides a nice mechanism for automatically adding WCF behaviors ... (more)
category: Web Dev | clicked: 114 | 2 comments | | source: www.devtrends.co.uk
tags: Unity, IoC, Dependecy Injection, WCF
2
Shouts

Validating UnityContainer configuration

posted by http://byteflux.myopenid.com/http://byteflux.myopenid.com/ 596 days, 21 hours, 56 minutes ago
Wednesday, October 05, 2011 5:39:59 AM GMT
In one of my recent projects I have reached the need to validate that I have all dependencies correctly registered in my UnityContainer. For those that are not familiar with Unity, it is a dependency injection container that allows constructor, property and method call dependency injection. You can get more information about how Unity works and also download the latest release from Codeplex: http://unity.codeplex.com... (more)
category: How To | clicked: 13 | comment | | source: byteflux.me
tags: Unity, IoC, Validation, Inversion of control, C#, TDD, Test, dependency injection, DI
3
Shouts

How not to do dependency injection - the static or singleton container

published 678 days, 16 hours, 31 minutes ago posted by devtrendsdevtrends 681 days, 14 hours, 29 minutes ago
Friday, July 15, 2011 11:05:20 AM GMT Tuesday, July 12, 2011 1:07:52 PM GMT
Dependency injection and the use of IoC containers is becoming more and more popular but many development teams do not have the knowledge or experience necessary to fully utilise the power of the IoC container. In the next few posts, we will take a look at the most common mistakes and how to address them. In this post, we are going to talk about the static or singleton container and why this 'pattern' is such a bad idea. (more)
category: Architecture | clicked: 40 | comment | | source: devtrends.co.uk
tags: Unity, IoC, DI/IoC, ioc container, DI
8
Shouts

Prism Template Pack 1.4: Now with MEF Support! - David Hill's WebLog - Site Home - MSDN Blogs

published 807 days, 11 hours, 25 minutes ago posted by AlexAlex 809 days, 2 hours, 27 minutes ago
Tuesday, March 08, 2011 4:11:34 PM GMT Monday, March 07, 2011 1:09:44 AM GMT
Quite a few folks have asked for MEF versions of the Prism templates. I’m happy to announce that the Prism Template Pack has now been updated to include MEF (as well as Unity) templates.You can download the latest version of the template pack (version 1.4) from here. You can read the release notes here. Remember to remove the .zip extension (leaving the .vsix extension!) before double-clicking to install the templates... (more)
category: Metro | clicked: 9 | 1 comment | | source: blogs.msdn.com
tags: Unity, Silverlight, MEF, WPF, Prism
2
Shouts

Dependency Injection in ASP.NET MVC3 « It Works On My Machine

posted by http://itworksonmymachine.wordpress.com/http://itworksonmymachine.wordpress.com/ 815 days, 15 hours, 39 minutes ago
Monday, February 28, 2011 11:57:05 AM GMT
What dependency injection means is that instead of writing code like this in your controller private IBlogService _BlogService; public BlogController() { _BlogService = new BlogService(); } you write code like this private IBlogService _BlogService; public BlogController(IBlogService blogService) { _BlogService = blogService; } the benefits of dependency injection are your classes are not tightly coupled, are more testable, and really is pluggable. (more)
category: Web Dev | clicked: 3 | comment | | source: itworksonmymachine.wordpress.com
tags: Unity, Dependecy Injection, MVC 3, ASP.NET 4
10
Shouts

Dependency Injection in ASP.NET MVC 3 using DependencyResolver and ControllerActivator - Shiju Varghese's Blog

published 848 days, 8 hours, 14 minutes ago posted by http://shijucv.myopenid.com/http://shijucv.myopenid.com/ 850 days, 23 hours, 49 minutes ago
Wednesday, January 26, 2011 7:22:06 PM GMT Monday, January 24, 2011 3:47:29 AM GMT
In my previous examples for dependency injection in ASP.NET MVC, I have used an approach where creating a custom controller factory deriving from DefaultControllerFactory and override the GetControllerInstance method for dependency injection. But ASP.NET MVC 3 is providing great support for dependency injection with very nice abstraction. In this post, I will demonstrate how to achieve dependency injection using two interfaces introduced in ASP.NET MVC 3 - IDependencyResolver and IControllerActivator. Un... (more)
category: Web Dev | clicked: 15 | 2 comments | | source: weblogs.asp.net
tags: Unity, ASP.NET MVC 3, ASP.NET MVC, IoC, ASP.NET
3
Shouts

Developing web apps using ASP.NET MVC 3, Razor and EF Code First - Part 2 - Shiju Varghese's Blog

published 860 days, 15 hours, 12 minutes ago posted by http://shijucv.myopenid.com/http://shijucv.myopenid.com/ 860 days, 23 hours, 41 minutes ago
Friday, January 14, 2011 12:24:32 PM GMT Friday, January 14, 2011 3:55:07 AM GMT
In my previous post Developing web apps using ASP.NET MVC 3, Razor and EF Code First - Part 1, we have discussed on how to work with ASP.NET MVC 3 and EF Code First for developing web apps. We have created generic repository and unit of work with EF Code First for our ASP.NET MVC 3 application and did basic CRUD operations against a simple domain entity. In this post, I will demonstrate on working with domain entity with deep object graph, Service Layer and View Models and will also complete the rest of ... (more)
category: Web Dev | clicked: 6 | 1 comment | | source: weblogs.asp.net
tags: Unity, ASP.NET MVC 3, ASP.NET MVC, ef code first, ASP.NET
4
Shouts

Developing web apps using ASP.NET MVC 3, Razor and EF Code First - Part 1 - Shiju Varghese's Blog

posted by http://shijucv.myopenid.com/http://shijucv.myopenid.com/ 868 days, 15 hours, 17 minutes ago
Thursday, January 06, 2011 12:19:40 PM GMT
In this post, I will demonstrate web application development using ASP. NET MVC 3, Razor and EF code First. This post will also cover Dependency Injection using Unity 2.0 and generic Repository and Unit of Work for EF Code First.You can download the source code from http://efmvc.codeplex.com.The following frameworks will be used for this step by step tutorial.ASP.NET MVC 3 EF Code First CTP 5 Unity 2.0 Define Domain Model Let’s create domain model for our simple web application Category classpubl... (more)
category: Web Dev | clicked: 8 | comment | | source: weblogs.asp.net
tags: Unity, ASP.NET MVC 3, ASP.NET MVC, ef code first, Razor, ASP.NET
3
Shouts

Revisiting XML Configurations In Unity - Gil Fink on .Net

published 867 days, 1 hour, 53 minutes ago posted by gilfgilf 868 days, 16 hours, 41 minutes ago
Saturday, January 08, 2011 1:43:30 AM GMT Thursday, January 06, 2011 10:55:14 AM GMT
In the past I wrote a few tutorials about Unity application block. One of the things I wrote about was how to configure a Unity container using design time configuration. In this post I’m going to revisit that post and show you how the configurations changed (for the better) and are much more easier to work with in the current version of Unity (version 2). (more)
category: How To | clicked: 0 | comment | | source: blogs.microsoft.co.il
tags: Unity, XML, Configuration
5
Shouts

MSDN Magazine: Cutting Edge - Aspect-Oriented Programming, Interception and Unity 2.0

published 899 days, 9 hours, 51 minutes ago posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 901 days, 4 hours, 52 minutes ago
Monday, December 06, 2010 5:45:28 PM GMT Saturday, December 04, 2010 10:44:34 PM GMT
Learn about the aspect-oriented programming paradigm and the related capabilities you find in Unity 2.0 as Dino Esposito explores how to deal with cross-cutting concerns in your code. (more)
category: How To | clicked: 3 | comment | | source: msdn.microsoft.com
tags: Unity, MSDN, aspect-oriented programming, MSDN Magazine
5
Shouts

WCF and Unity 2.0 - Gadi Berqowitz's Blog

published 904 days, 9 hours, 59 minutes ago posted by gmanILgmanIL 905 days, 16 hours, 4 minutes ago
Wednesday, December 01, 2010 5:37:54 PM GMT Tuesday, November 30, 2010 11:32:12 AM GMT
WCF and Unity 2.0 In my previous posts on Unity 2.0 and infrastructure and Unity 2.0 and application architecture I've shown how can Unity 2.0 can be used In order to create loose coupled layers in your application and I've explained how dependency injection can be used for this matter. If you are developing a distributed application using WCF services (very common scenario this days…) you might consider using Unity 2.0 With WCF services and therefore use dependency injection pattern throughout your a... (more)
category: Architecture | clicked: 13 | comment | | source: blogs.microsoft.co.il
tags: Unity, C#, WCF
4
Shouts

Application Architecture using Unity 2.0 - Gadi Berqowitz's Blog

published 912 days, 9 hours, 19 minutes ago posted by gmanILgmanIL 913 days, 15 hours, 7 minutes ago
Tuesday, November 23, 2010 6:17:39 PM GMT Monday, November 22, 2010 12:29:17 PM GMT
Application Architecture using Unity 2.0 In my previous post, I've showed how to use dependency injection to create loose coupled components in order to achieve a greater flexibility For your application's architecture. Today I'll be showing the real thing : achieving loose coupled layers using dependency injection via Unity 2.0 Let's assume that this is your common basic server architecture: Services layers / WCF Services layers – responsible for the entire application server business logic and... (more)
category: Architecture | clicked: 2 | comment | | source: blogs.microsoft.co.il
tags: Unity, C#
5
Shouts

Dependency injection using Unity 2.0 and Enterprise Library 5.0 - Gadi Berqowitz's Blog

published 922 days, 7 hours, 28 minutes ago posted by gmanILgmanIL 924 days, 12 hours, 22 minutes ago
Saturday, November 13, 2010 8:08:52 PM GMT Thursday, November 11, 2010 3:14:55 PM GMT
Dependency injection using Unity 2.0 and Enterprise Library 5.0 Decoupling your application layers is a very important guideline when building your application. This is important for several reasons: · Separating your components and writing an atomic unit of codes · Code re-use throughout the application · Test-driven development · Encapsulation of data sources and business logic components Unity 2.0 enables you to achieve that using dependency injection methods. What's "Dependency injecti... (more)
category: Architecture | clicked: 3 | comment | | source: blogs.microsoft.co.il
tags: Unity, dependency injection, C# .NET
8
Shouts

Dependency Injection Using Unity Application Block

published 936 days, 6 hours, 2 minutes ago posted by sonukapoorsonukapoor 937 days, 13 hours, 30 minutes ago
Saturday, October 30, 2010 9:34:34 PM GMT Friday, October 29, 2010 2:06:23 PM GMT
In this article Gil Fink explains what is dependency injection, what is Unity Application Block and how to use it. (more)
category: Architecture | clicked: 2 | comment | | source: dotnetslackers.com
tags: Unity
10
Shouts

Using Microsoft Unity in ASP.NET MVC

published 941 days, 3 hours, 7 minutes ago posted by sonukapoorsonukapoor 941 days, 12 hours, 42 minutes ago
Tuesday, October 26, 2010 12:29:03 AM GMT Monday, October 25, 2010 2:54:01 PM GMT
Using Microsoft Unity in ASP.NET MVC (more)
category: Web Dev | clicked: 1 | comment | | source: dotnetslackers.com
tags: Unity, MVC
4
Shouts

Using the ControllerActivator in MVC 3

published 948 days, 13 hours ago posted by gilfgilf 949 days, 17 hours, 36 minutes ago
Monday, October 18, 2010 2:36:01 PM GMT Sunday, October 17, 2010 10:00:55 AM GMT
In the previous post I showed how to use the DependencyResolver in order to bring Dependency Injection behavior to a MVC 3 application. In this post I’ll show you how you can use the ControllerActivator in order to activate controllers using your own behavior. (more)
category: Web Dev | clicked: 3 | comment | | source: blogs.microsoft.co.il
tags: Unity, Dependecy Injection, MVC 3, ASP.NET
4
Shouts

Dependency Injection in MVC 3 Was Made Easier

published 949 days, 12 hours, 52 minutes ago posted by gilfgilf 949 days, 18 hours, 5 minutes ago
Sunday, October 17, 2010 2:44:08 PM GMT Sunday, October 17, 2010 9:31:10 AM GMT
In the past I wrote apost that showed how to implement Dependency Injectionusing Unity in ASP.NET MVC framework. This post revisits that post and shows how you can do the same thing easily in MVC 3. Pay attention that the supplied code is based on MVC 3 beta and may change in the future. (more)
category: Web Dev | clicked: 1 | comment | | source: blogs.microsoft.co.il
tags: Unity, Dependecy Injection, MVC 3, ASP.NET
6
Shouts

Unity, Castle Windsor, StructureMap, Ninject – who has best performance?

published 973 days, 8 hours, 48 minutes ago posted by gpeipmangpeipman 975 days, 7 hours, 58 minutes ago
Thursday, September 23, 2010 6:48:59 PM GMT Tuesday, September 21, 2010 7:38:06 PM GMT
I made quick comparison of performance of four DI/IoC containers. I measured Unity, Castle Windsor, StructureMap and Ninject in two scenarios – resolving objects with empty constructor and resolving object with injected parameters in its constructor. Results are here. (more)
category: How To | clicked: 24 | comment | | source: weblogs.asp.net
tags: Unity, DI/IoC, Performance, Ninject, StructureMap, Castle Windsor
5
Shouts

Inversion of control (IOC containers) .NET IOC patterns

posted by http://agafonovslava.blogspot.com/http://agafonovslava.blogspot.com/ 979 days, 16 hours, 7 minutes ago
Friday, September 17, 2010 11:29:05 AM GMT
IoC is not a new concept, however. It has been around for several years now. Using object-oriented design principles and features such as interface, inheritance, and polymorphism, the IoC pattern enables better software design that facilitates reuse, loose coupling, and easy testing of software components. This article discusses IoC and demonstrates how to use this pattern in your software design without having to implement any of the open source frameworks. (more)
category: Architecture | clicked: 24 | comment | | source: blog.agafonov.net.ua
tags: Unity, IoC, S2Container.NET, Spring.NET, LinFu, Ninject, tinyioc, Hiro, Autofac, LightCore, Puzzle.NET, StructureMap, Castle Windsor, PicoContainer.NET
8
Shouts

MvcExtensions – Custom Service Registration - Kazi Manzur Rashid's Blog

published 1099 days, 16 hours, 1 minute ago posted by mithumithu 1101 days, 9 hours, 23 minutes ago
Thursday, May 20, 2010 11:35:34 AM GMT Tuesday, May 18, 2010 6:13:46 PM GMT
In this post, I will show you how you can register your custom services in your preferred IoC container and how the MvcExtensions will integrate it with the rest of the application. One of the goal of MvcExtensions is, unlike the ot... (more)
category: Web Dev | clicked: 5 | comment | | source: weblogs.asp.net
tags: Unity, ASP.NET MVC, IoC/DI, ASPNETMVC, Ninject, Windsor, Open Source, Autofac, MVC, MVCExtensions, StructureMap, ASP.NET
Previous 1 2 Next