Development With A Dot

Blog on development in general, and specifically on .NET

Sponsors

My Friends

My Links

Permanent Posts

Portuguese Communities

Browse by Tags

All Tags » Unity (RSS)
Pooled Lifetime Manager for Unity
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...
CachingCallHandler and Unity 2.0
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...
Set Default Interceptor Unity Extension
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...
Enterprise Library Lifetime Managers
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...
Dependency Injection on an ASP.NET Page
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...
Enterprise Library Call Handlers
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