concept Windsor in category c#

appears as: Windsor
Dependency Injection in .NET

This is an excerpt from Manning's book Dependency Injection in .NET.

In this example, you’ll implement and register Interceptors for both error handling and Circuit Breaker. Adding an aspect to Windsor is a three-step process, as shown in figure 9.12.

Figure 9.12. The three steps involved in adding an aspect to Windsor
ASP.NET MVC in Action with MvcContrib, NHibernate, and More

This is an excerpt from Manning's book ASP.NET MVC in Action with MvcContrib, NHibernate, and More.

Listing 6.15. A simplified controller factory for Windsor

The Castle Project is a collection of useful frameworks and components used to build applications. Castle Windsor is just a small part of this project. You can configure Windsor to store the types of objects you want to build either in an XML configuration file or in a code file. I prefer to configure it with code, because it is far less verbose, and you get the added benefit of IntelliSense.

To add Windsor to your application, download the binaries from http://castleproject.org and reference these assemblies in your project:

11.1.2. ActiveRecord and Windsor

Besides MonoRail, the other two major components of the Castle framework are ActiveRecord and Windsor. As Castle aims to be a full-stack web framework, it supplies two other pieces to the web application puzzle besides the MVC component. ActiveRecord fills in the puzzle pieces for data access, by providing a full-featured Active Record pattern implementation. For managing dependencies and component lifetime, Castle supplies the Windsor container.