powered by myself

Category Archives: castle

CompactContainer rebump

Almost a year ago I did some experimentation with porting Castle Windsor to be used under the .NET Compact Framework, and while I got it done (excluding several features; mainly everything that has to do with proxys), it was clear that its implementation was not though to be used in a resource-constrained environment. Windsor has [...]

Contextual Lifestyle Reloaded

Some time ago I did some experimentation with a custom Castle Windsor lifestyle under the main motivation of coming up with a way for managing the NHibernate session in a fat client application. After I posted my findings on that matter I have continued spiking a cleaner solution and I’ve came up with something worth [...]

Rich-client NHibernate session management

I’ve been struggling with this subject for quite some time now, and I’ve just seem to found the ‘sweet spot’. Before we start, I need to describe some facts about the target application: rich-client: this approach will work the same for a Winform application as for a WPF application. multi-screen UI: it could be multi-form [...]

Custom Windsor lifestyle: ResolutionContextLifestyleManager

UPDATED 27/11/2011: New implementation here For reasons that will become clear in a future post (or later in this one), I needed to implement a custom lifestyle for Microkernel/Windsor. The required behavior was to propagate an instance of a component through the whole resolution chain but no further. Let me explain it a little better. [...]

MvcContrib parameter binder’s: CastleBind vs Deserialize

I’m using MvcContrib in my first ASP.NET MVC based project… I need to get an object built from the user entry in a web form, and to simplify this task I’m trying the ”parameter binding” feature implemented in MvcContrib. I’ve tested both Deserialize and CastleBind attributes and the first big difference I’ve found between them [...]

NHibernate.Search with Castle.Facilities.NHibernateIntegration

A few days ago I was looking to add full text search capability to an application that uses NHibernate, so I took a look at NHibernate.Search. The application also uses Windsor and the NH integration facility. This facility provides my repositories with an instance of ISessionManager (or ISessionFactory) which in turn is used to get [...]

Keep in touch

Categories