Mar 3, 2010 at 8:30 AM
Edited Mar 3, 2010 at 8:30 AM
The process of selecting a configuration is done via a IMvcExApplicationConfigurationSelector, which will be queried from time to time to find out what the current configuration is.
I find when testing very simple sites, that just hard coding one to return a certain value works fine - but of course you could make it look at the current query string and choose configuration from that.. or look at session or what have you.
A very basic one looks like this:
public class DefaultConfigurationSelector : IMvcExApplicationConfigurationSelector
public string GetActiveConfigurationId()
// Fall back to default
You can set this up in MvcEx like this:
Where mApplication is your MvcExApplication
I can't remember which one the demo uses off hand - but you can see it's easy to write your own hard coded one (or query string based one)
A new blog post will be incoming after my current work deadline - very stressed this past couple of weeks! :)