Example #1
0
 /// <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);
 }
Example #2
0
 public IocContainer(IAutoFacDependencyContainer container)
 {
     Container = container ?? throw new ArgumentNullException(nameof(container));
     Kernel    = Container.Container;
 }