WCF and Unity 2.0

30 בנובמבר 2010

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 application. Think about a scenario when you got an client application developed against your WCF services but you haven't...
4 comments

Application Architecture using Unity 2.0

21 בנובמבר 2010

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 data sources encapsulation from the client. Business logic layer – representing the entire application business logic Data access...
no comments

Dependency injection using Unity 2.0 and Enterprise Library 5.0

7 בנובמבר 2010

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 injection"? Dependency injection (DI) is a design pattern with a core principle of separating behavior from dependency resolution. In other words: a...
26 comments