Browse by Tags
All Tags »
Enterprise Library (
RSS)
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...
Version 3.1, fully compatible with Enterprise Library 4.1 and .NET 3.5, was released. You can get it from http://www.codeplex.com/entlibcontrib . What does it contain, you may ask? Well, here is the list from their site: What's in EntLib Contrib? The...
Good news: the long-promised Hands-on Labs for Unity has been released! Get it from here , read about it here .
Updated! The guys from the Enterprise Library development team are taking feature suggestions for the upcoming Enterprise Library 5. I have suggested the following: A configuration editor for Unity, like ther is for all the other application blocks A...
The Enterprise Library comes with a custom ASP.NET validator, that gets validation from the metadata defined in your classes. If you have seen my previous post , you know how to add validation metadata to a POCO, usually a data transfer object. Basically...
In order to enable validation of the properties of a request message, you only need to add a [ValidationBehavior] attribute to your service interface, just next (or before) the [ServiceContract ], and a [FaultContract(typeof(ValidationFault ))] on the...
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