Skip to content

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

@nblumhardt

Description

@nblumhardt

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."))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions