示例#1
0
 /// <summary>
 /// Used to configure ABP NHibernate module.
 /// </summary>
 public static IAbpNHibernateModuleConfiguration AbpNHibernate(this IAbpModuleConfigurations configurations)
 {
     return(configurations.AbpConfiguration.GetOrCreate("Modules.Abp.NHibernate", () => new AbpNHibernateModuleConfiguration()));
 }
 /// <summary>
 /// Used to configure ABP Web module.
 /// </summary>
 public static IAbpWebModuleConfiguration AbpWeb(this IAbpModuleConfigurations configurations)
 {
     return(configurations.AbpConfiguration.GetOrCreate("Modules.Abp.Web", () => new AbpWebModuleConfiguration()));
 }
 /// <summary>
 /// Private constructor for singleton pattern.
 /// </summary>
 public AbpStartupConfiguration()
 {
     Localization = new AbpLocalizationConfiguration(IocManager.Instance);
     Modules      = new AbpModuleConfigurations(this);
 }