using Prism.Ioc; using System; using AutofacCore = Autofac.Core; namespace Prism.Autofac { /// /// Base bootstrapper class that uses as it's container. /// public abstract class PrismBootstrapper : PrismBootstrapperBase { /// /// Create a new used by Prism. /// /// A new . protected override IContainerExtension CreateContainerExtension() { return new AutofacContainerExtension(); } /// /// Registers the s of the Exceptions that are not considered /// root exceptions by the . /// protected override void RegisterFrameworkExceptionTypes() { ExceptionExtensions.RegisterFrameworkExceptionType(typeof(AutofacCore.DependencyResolutionException)); ExceptionExtensions.RegisterFrameworkExceptionType(typeof(AutofacCore.Registration.ComponentNotRegisteredException)); } } }