Exemple #1
0
 private ContainerBase(ILog log, int?maxDisposeParallelization, bool includeUnkeyedInResovleAll, RegistrationMaps maps)
 {
     _maps = maps ?? throw new ArgumentNullException(nameof(maps));
     Log   = log ?? throw new ArgumentNullException(nameof(log));
     MaxDisposeParallelization  = maxDisposeParallelization;
     IncludeUnkeyedInResovleAll = includeUnkeyedInResovleAll;
 }
Exemple #2
0
        protected ContainerBase(ILog log, int?maxDisposeParallelization, bool includeUnkeyedInResovleAll)
            : this(log, maxDisposeParallelization, includeUnkeyedInResovleAll, RegistrationMaps.Create())
        {
            this.RegisterInstance(log);

            this.RegisterProxy <IContainer>(r => this);
            this.RegisterProxy <IResolver>(r => this);
        }