/// <summary> /// Initializes a new instance of the <see cref="GeneratedContainerBulider" /> class. /// </summary> /// <param name="containerGenerator">The container generator.</param> /// <param name="registrationAggregator">The registration aggregator.</param> /// <param name="containerSettings">The container settings.</param> /// <param name="registries">The registries.</param> /// <exception cref="System.ArgumentNullException">containerGenerator</exception> public GeneratedContainerBulider(IContainerGenerator containerGenerator, IContainerSettings containerSettings, IRegistrationAggregator registrationAggregator, params IRegistry[] registries) { if (null == containerGenerator) { throw new ArgumentNullException("containerGenerator"); } _containerGenerator = containerGenerator; _containerSettings = containerSettings ?? new DefaultContainerSettings(); _registrationAggregator = registrationAggregator ?? new RegistrationAggregator(); _registries = new List<IRegistry>(); if (null != registries && registries.Length > 0) { _registries.AddRange(registries); } }
/// <summary> /// Initializes a new instance of the <see cref="GeneratedContainerBulider" /> class. /// </summary> /// <param name="containerGenerator">The container generator.</param> /// <param name="registrationAggregator">The registration aggregator.</param> /// <param name="containerSettings">The container settings.</param> public GeneratedContainerBulider(IContainerGenerator containerGenerator, IContainerSettings containerSettings = null, IRegistrationAggregator registrationAggregator = null) : this(containerGenerator, containerSettings, registrationAggregator, null) { }