-
One of the commonly asked questions about Castle Dynamic Proxy: How do I use CreateClassProxy to wrap an existing object to intercept calls to its virtual members? Short answer is – you can’t. And if you think about it, there’s a very good reason for that. Since classes are stateful, and there's...
-
I just committed a very cool feature to Castle Windsor/MicroKernel that adds lazy registration capabilities. By lazy registration I mean – you get a chance to register a component right at the spot when it’s about to be resolved. This enables things like integration with external sources of components...
-
We’ve covered almost all of Dynamic Proxy . If you followed along through this series, you now know 95% of Dynamic Proxy 2.1 features that get used 99,9% of the time. Now is the time to wrap up, and with that we’ll review some of the most common pitfalls that you may encounter when developing code on...
-
Castle Windsor allows you to use single component for multiple services, which is called Forwarded Types. Forwarded Types In other words, you can tell Windsor – when IFoo is requested use FooBar as implementation, and when Bar is requested also use FooBar (when using default lifestyle of singleton you...
-
Wow, what I had planned as few parts tutorial has turned to nothing less than full examination of Dynamic Proxy capabilities. Of all most important features we' have basically just one left – proxy persistence, which is what we’re going to talk about today. Discussion Although Dynamic...
-
On the course of last few months, I’ve been working with Craig Neuwirt , on what I consider one of the coolest additions to Castle WCF Integration Facility . Problem As you probably know by default all WCF calls are synchronous – you make a request, under the cover WCF blocks your thread...
-
UPDATE: This facility made its way into Castle Microkernel, with name OnCreateFacility. I also made it possible to specify more than one actions. In one of Joshua Flanagan's recent post he mentioned about how they handle application configuration and I have to say that I liked their way. I also liked...
-
We’ve been getting many requests on having fluent configuration for NHibernate Integration Facility, and as I like programmatic configuration more than XML configuration (did I mention that I hate XML?), I decided to work on it. After 2-3 hours, I got the below more or less working container.Register...
-
Castle’s extensibility points provide you many ways to make your life easier. One and most widely used extensibility point is the facilities. By using facilities, you can integrate various other frameworks and technologies easily. I am going to talk about NHibernate Integration Facility, which is currently...
-
Well, OK I exaggerate slightly, it wasn't NHibernate that wasted most of my day, but the fact that we are having to use a slightly out of date version of 2.0 to allow us to use NHSearch . NHibernate Search is a great piece of code, it abstracts Lucene.NET away from your application, and lets you...