GenericContractTypeMapping is a sealed class so it's not possible to derive

Oct 20, 2011 at 11:05 AM

GenericContractTypeMapping is a sealed class so it's not possible to derive from it like in the tutorial showing how to implement Generic export/import.

Coordinator
Oct 21, 2011 at 7:30 AM

 

GenericContractTypeMapping represents a mapping between contract and implementation, nothing more. To do the actual mapping, derive from GenericContractRegistryBase and use the Register method which under the hoods uses GenericContractTypeMapping to represent the mapping. You can find more information here.

/Piotr

Feb 16, 2012 at 9:46 AM

@Piotr I follow that blog post for my MVC3 application. But I get this error:

The IControllerFactory 'MefContrib.Web.Mvc.CompositionControllerFactory' did not return a controller for the name 'Home'

Can you guide me please?

Coordinator
Feb 18, 2012 at 6:07 PM

Can you please provide sample solution we can both work on ?