标签:mod 学习笔记 span str style etc web ble ref
//将所有异常发送到客户端 Configuration.Modules.AbpWebCommon().SendAllExceptionsToClients = true;
1,自定义配置
①创建配置类
public class CustomModule { public bool IsEnable { get; set; } }
②定义Configuration扩展
public static class ModuleConfigrationExt { public static CustomModule GetCustomModule(this IModuleConfigurations moduleConfigurations) { return moduleConfigurations.AbpConfiguration.Get<CustomModule>(); } }
③使用自定义配置
//注册CustomModule配置类 IocManager.Register<CustomModule>(); //设置CustomModule配置 Configuration.Modules.GetCustomModule().IsEnable = true;
标签:mod 学习笔记 span str style etc web ble ref
原文地址:http://www.cnblogs.com/zd1994/p/7526799.html