Browse by Tags
All Tags »
Unity (
RSS)
A pooled lifetime manager for Unity. Creates new objects up to a maximum size and returns them in round-robin sequence. Default pool size is set to 5, but you can override it in the appSettings section with a key: <appSettings> <!-- format is...
Unity 2.0 no longer includes CachingCallHandler , as you can see in here . Since this is something I use very often, I decided to bring it back, with some changes: It no longer uses ASP.NET cache, but the new MemoryCache The current process is part of...
With Unity, it is quite easy to implement an extension that automatically sets the appropriate interceptor for each registered type. Here is how I did it: public class DefaultInterceptorInterceptionExtension : Interception { private static readonly IInterceptor...
Update: fixed a bug in the attached code. Enterprise Library comes with several lifetime manager, which you can use to control how your objects are stored and retrieved. The available lifetime managers are: ExternallyControlledLifetimeManager : stores...
In order to have dependency injection on your ASP.NET pages, the best way to go is through a customized page handler factory. A page handler factory is a class directly or indirectly derived from PageHandlerFactory who has the responsibility to create...
Call Handlers are Enterprise Library's extension mechanism. They allow code to be injected before or after a method is called. Enterprise Library, as of version 4.1, comes with the following call handlers and associated handler attributes, in assembly...
More Posts