In WCF WebApi it was possible to use multiple configurations, having one service/controller using one set of MediaTypeFormatters and another using another set of MediaTypeFormatters..
In ASP.NET Web Api is seems like you only have a global configuration, so how would one setup different mediatype formatters for different controllers?
smolesen
Member
43 Points
37 Posts
Multiple configurations
Feb 24, 2012 06:01 AM|LINK
Hi
In WCF WebApi it was possible to use multiple configurations, having one service/controller using one set of MediaTypeFormatters and another using another set of MediaTypeFormatters..
In ASP.NET Web Api is seems like you only have a global configuration, so how would one setup different mediatype formatters for different controllers?
TIA
Søren
Kiran Challa
Participant
1442 Points
281 Posts
Microsoft
Re: Multiple configurations
Feb 24, 2012 01:03 PM|LINK
In ASP.NET Web Api, multiple configurations is not supported as of now.
Kiran Challa
smolesen
Member
43 Points
37 Posts
Re: Multiple configurations
Feb 24, 2012 04:33 PM|LINK
Hi
Will it be supported in the final release.... do you know?
I'm working on a WCF Web Api project which is using multiple configurations, and I'd like to migrate it to ASP.NET Web API
Søren
Kiran Challa
Participant
1442 Points
281 Posts
Microsoft
Re: Multiple configurations
Feb 24, 2012 07:01 PM|LINK
Yes, in the final release we will support per-controller configuration of formatters.
Kiran Challa
smolesen
Member
43 Points
37 Posts
Re: Multiple configurations
Feb 27, 2012 06:58 AM|LINK
Hi
Only formatters ... how about DelegatingHandlers? Will the final release support per-controller configuration of these too?