using Autofac; using Prism.Ioc; namespace Prism.Autofac { /// /// Extensions help get the underlying /// public static class PrismIocExtensions { /// /// Gets the from the /// /// The current /// The underlying public static IContainer GetContainer(this IContainerProvider containerProvider) { return ((IContainerExtension)containerProvider).Instance; } /// /// Gets the from the /// /// The current /// The underlying public static IContainer GetContainer(this IContainerRegistry containerRegistry) { return ((IContainerExtension)containerRegistry).Instance; } /// /// Gets the used to register services. /// /// /// The current public static ContainerBuilder GetBuilder(this IContainerRegistry registry) { return ((IAutofacContainerExtension)registry).Builder; } } }