/// <summary> /// Instanciate a new instance with build options /// </summary> /// <param name="buildOptions">AutoFac build options.</param> /// <param name="dependencyFactory">The dependency factory.</param> public IocKernelBuilder(ContainerBuildOptions buildOptions, IDependencyFactory dependencyFactory) { _container = DependencyContainer.Create(buildOptions, dependencyFactory); }
public IocContainer(IAutoFacDependencyContainer container) { Container = container ?? throw new ArgumentNullException(nameof(container)); Kernel = Container.Container; }