/// <inheritdoc /> public IReadOnlyKernel BuildReadOnlyKernel() { var readonlyKernel = new ReadOnlyKernel( this.bindings.Clone(), this.Components.Get <ICache>(), this.Components.Get <IPlanner>(), this.Components.Get <IPipeline>(), this.Components.Get <IBindingPrecedenceComparer>(), this.Components.GetAll <IBindingResolver>().ToList(), this.Components.GetAll <IMissingBindingResolver>().ToList(), this.settings.Clone(), this.Components.Get <ISelector>()); return(readonlyKernel); }
/// <summary> /// Creates the readonly kernel. /// </summary> /// <returns>The readonly kernel.</returns> public IReadOnlyKernel BuildReadOnlyKernel() { var readonlyKernel = new ReadOnlyKernel( this.Settings, this.bindings.Clone(new ReferenceEqualityTypeComparer()), this.Components.Get <ICache>(), this.Components.Get <IPlanner>(), this.Components.Get <IConstructorScorer>(), this.Components.Get <IPipeline>(), this.Components.Get <IExceptionFormatter>(), this.Components.Get <IBindingPrecedenceComparer>(), this.Components.GetAll <IBindingResolver>().ToList(), this.Components.GetAll <IMissingBindingResolver>().ToList()); return(readonlyKernel); }