/// <summary>
        ///     加载所有模块
        /// </summary>
        private void LoadAllModules()
        {
            Logger.Debug("正在加载模块...");

            var moduleTypes = FindAllModules();

            Logger.Debug("总共找到 " + moduleTypes.Count + " 个模块");

            RegisterModules(moduleTypes);
            CreateModules(moduleTypes);

            FarseerModuleCollection.EnsureKernelModuleToBeFirst(_moduleCollection);

            SetDependencies();

            Logger.DebugFormat("{0} 个模块已经加载", _moduleCollection.Count);
        }
 /// <summary>
 ///     构造函数
 /// </summary>
 /// <param name="iocManager"></param>
 public FarseerModuleManager(IIocManager iocManager)
 {
     _moduleCollection = new FarseerModuleCollection();
     _iocManager       = iocManager;
     Logger            = NullLogger.Instance;
 }