系统分成:

1、autofac依赖注入配置文件Ers.Infrastructure—CPI— ContainerBuilderExtensions

 //在类里定义一个接口,接口里定义一个容器构建类ContainerBuilder
public interface IServiceBuilder
        {
            /// <summary>
            /// 服务集合。
            /// </summary>
            ContainerBuilder Services { get; set; }
        }
//定义一个不可被继承的内部类ServiceBuilder继承这个接口

        /// <summary>
        /// 默认服务构建者。
        /// </summary>
        internal sealed class ServiceBuilder : IServiceBuilder
        {
            //通过构造方法给ServiceBuilder注入了ContainerBuilder Services
            public ServiceBuilder(ContainerBuilder services)
            {
                Services = services ?? throw new ArgumentNullException(nameof(services));
            }

            #region Implementation of IServiceBuilder

            /// <summary>
            /// 服务集合。
            /// </summary>
            public ContainerBuilder Services { get; set; }

            #endregion Implementation of IServiceBuilder
        }

2、项目采用了DDD领域驱动模型