How can I be sure the types in my module are registered with the container?

Topics: Writing themes
Oct 9, 2012 at 4:02 AM


I found that my modules resource manifest is not the list of IResourceProviders here:

        public ResourceManager(IEnumerable> resourceProviders) {
            _providers = resourceProviders;

I have searched diligently but I cannot find where these resourceProviders are collected or registered with the container in order to be injected into the ResourceManager constructor.

So maybe my module is also subject to lack of registration for other features that it might need to have registered in addition to its resourceProvider.

How can I discover what qualifies a module to be included in the list that get examined for types to be registered with the container?



Oct 9, 2012 at 6:23 PM

A resource manifest must implement IResourceManifestProvider, it must be included in the csproj of the module, and the feature needs to be enabled.