You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| AbpCommonModule.cs | 1 year ago | |
| DynamicOptionsProvider.cs | 1 year ago | |
| FodyWeavers.xml | 2 years ago | |
| FodyWeavers.xsd | 2 years ago | |
| IOptionsProvider.cs | 1 year ago | |
| LINGYUN.Abp.Core.csproj | 1 year ago | |
| README.EN.md | 1 year ago | |
| README.md | 1 year ago | |
README.md
LINGYUN.Abp.Core
介绍
LINGYUN.Abp.Core 是一个基础核心模块,提供了一些通用的功能和扩展。
功能
- 动态选项提供者 (
DynamicOptionsProvider<TValue>)- 简化需要在使用配置前自行调用接口的繁复步骤
- 支持延迟加载配置值
- 提供一次性运行机制,确保配置只被加载一次
安装
dotnet add package LINGYUN.Abp.Core
使用
- 添加
[DependsOn(typeof(AbpCommonModule))]到你的模块类上。
[DependsOn(typeof(AbpCommonModule))]
public class YourModule : AbpModule
{
// ...
}
- 使用动态选项提供者:
public class YourOptionsProvider : DynamicOptionsProvider<YourOptions>
{
public YourOptionsProvider(IOptions<YourOptions> options)
: base(options)
{
}
}