//实例化容器 _container = new UnityContainer(); //_container.AddNewExtension(); var unityConfig = System.AppDomain.CurrentDomain.BaseDirectory + @"App_Data\unity.config"; var fileMap = new ExeConfigurationFileMap() { ExeConfigFilename = unityConfig }; var configuration = ConfigurationMana