Unity Bootstrapper

Jul 14, 2015 at 8:25 AM
I have found the RibbonRegionAdapter and it is just what I need, but the TestApplication uses Autofac while I am using the Unity as DI provider.

In the quickstart you say:
_register the adapter in the Bootstrapper's ConfigureRegionAdapterMappings method:
mappings.RegisterMapping(typeof(Ribbon), ServiceLocator.Current.GetInstance<Prism.RibbonRegionAdapter.RibbonRegionAdapter>());
_
But in the TestApplication you need to register first the assembly, so you can resolve later in the bootstrapper ConfigureRegionAdapterMappings:
        builder.RegisterAssemblyTypes(typeof(RibbonRegionAdapter).Assembly)
            .InNamespaceOf<RibbonRegionAdapter>()
            .AsSelf()
            .SingleInstance();
Is it necesary to register it with Unity or MEF? of just with Autofac? Because just following the quickstart I am not able to use the RibbonRegionAdapter.

Thank you very much