NancyFx/Nancy — Issue #533: NancyConventions should be responsible for initializing its conventions
Author: vladiliescu
Created: 2012-02-29 19:21:55+00:00
State: open

As of v0.10, NancyConventions doesn't initialize its ViewLocationConventions and StaticContentsConventions, this responsability being left to the DefaultViewLocationConventions respectively the DefaultStaticContentsConventions classes.

This makes it harder to simply add a new convention to the existing ones by implementing IConvention. I know the recommended way is to override the Bootstrapper and place my conventions in there, but it seems cleaner to implement IConvention. However, I don't want to be responsible for initializing those two lists.

Also, from a design perspective I believe a class should be responsible for initializing its own members, and not leave this to other classes.