using Prism.Ioc;
using System;
using System.Windows;
using AutofacCore = Autofac.Core;
namespace Prism.Autofac
{
///
/// Base application class that uses as it's container.
///
public abstract class PrismApplication : PrismApplicationBase
{
///
/// 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));
}
protected override void Initialize()
{
base.Initialize();
}
protected override Window CreateShell()
{
return null;
}
}
}