Making the HttpMessageHandlerFactory in WCF Web Apis more DI friendly

Posted by: Pablo M. Cibraro (aka Cibrax), on 07 May 2011 | View original | Bookmarked: 0 time(s)

The HttpMessageHandlerFactory shipped out of the box in the WCF Web Apis Preview 4 can only construct channels instances with a single argument in the constructor representing the inner channel in the pipeline. public abstract class DelegatingChannel : HttpMessageChannel { protected DelegatingChannel(HttpMessageChannel innerChannel); This is the constructor that the factory always try to invoke by default. However, this approach does not work well when you need to inject...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: WCF | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 943 | Hits: 35

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD