Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convention update to match ASP.NET MVC default convention #1

Open
nblumhardt opened this issue Jun 14, 2012 · 0 comments
Open

Convention update to match ASP.NET MVC default convention #1

nblumhardt opened this issue Jun 14, 2012 · 0 comments

Comments

@nblumhardt
Copy link

Love the new MEF dependency resolver! :)

To make this consistent with the convention we're recommending for use with ASP.NET MVC, it would be nice to allow subfolders of /Parts, e.g.:

/Parts
/Data
/...

To do that, we normally check for ".Parts." within the type's namspace, e.g. instead of:

        t => t.Namespace != null && t.Namespace.EndsWith(".Parts")

We use the convention:

        t => t.Namespace != null && (t.Namespace.EndsWith(".Parts") || t.Namespace.Contains(".Parts."))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant