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

Topics: Writing modules
Oct 9, 2012 at 5:12 AM

Hi,

I discovered that my custom module was not being examined for a class extending IResourceProvider.

My resourceManifests are not found among the list of resourceProviders injected into the Resource Manager constructor.

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

I believe this is the reason than my resourceManifest entries are not being made available to Script.Include and Style.Include statements.

How can I make sure that my module is examined for IResourceProviders or other types that need to be registered with the container?

Thanks,

Kimball

Developer
Oct 9, 2012 at 1:56 PM

Hi Kim,

Do you have a Module.txt file? If Yes, have you enabled the module?

Second, can you post the class here so I can give it a once over?

Nick