Tag Archives: DI

Trackable Entities – Now with Repository and Unit of Work

When I released v1.0 of my Trackable Entities Framework, it came with a lot of developer goodness: NuGet packages, Visual Studio project templates, a VSIX installer available from Visual Studio’s Extensions Gallery, Getting Started guides and a screencast. From the … Continue reading

Posted in Technical | Tagged , , | 3 Comments

Decouple WCF Services from their DI Container with Common Instance Factory

In my last blog post I introduced the Common Instance Factory, which I built as an alternative to Common Service Locator to reduce coupling between an application and a Dependency Injection (DI) container.  Unlike the Common Service Locator (CSL), the … Continue reading

Posted in Technical | Tagged , | 4 Comments

Use Common Instance Factory to Abstract Away the Dependency Injection Container

Download the Common Instance Factory with WCF Extensions here and is also available on NuGet. A while back I wrote a blog post on the Onion Architecture, an approach to building loosely-coupled applications where you can swap out particular components … Continue reading

Posted in Technical | Tagged , | 3 Comments

Using Ninject with WCF Services

Download the code for this post. Update: This post is based on a older version of Ninject WCF Extensions. For an example of using the new version with REST support, see this post. In my post on the Onion Architecture … Continue reading

Posted in Technical | Tagged , , | 11 Comments

Global Error Handling in ASP.NET MVC 3 with Ninject

Download the code for this blog post. In my last blog post I explained how to decouple infrastructure concerns, such as logging, from the rest of your application using a Dependency Injection container, such as Ninject. I implemented an ILoggingService … Continue reading

Posted in Technical | Tagged , , , | 5 Comments

Using NLog with Dependency Injection

Download the code for this blog post. In my last post I blogged about using Dependency Injection to break tight coupling between application components.  This lets you to treat infrastructure pieces, such as data access or logging, as swappable entities, … Continue reading

Posted in Technical | Tagged , , | 15 Comments

Peeling Back the Onion Architecture

Download the code for this article. Updated 14-Oct-2011: I modified the code sample to include controller unit tests and improved the config and logging services. I recently started a consulting project as an architect on an ASP.NET MVC application and … Continue reading

Posted in Technical | Tagged , , , | 83 Comments