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 | |
|---|---|---|
| .. | ||
| LINGYUN/Abp/Features/Client | 2 years ago | |
| FodyWeavers.xml | 2 years ago | |
| FodyWeavers.xsd | 2 years ago | |
| LINGYUN.Abp.Features.Client.csproj | 2 years ago | |
| README.EN.md | 1 year ago | |
| README.md | 1 year ago | |
README.md
LINGYUN.Abp.Features.Client
针对客户端的功能验证
功能特性
- 提供客户端功能值提供者(ClientFeatureValueProvider)
- 支持基于客户端ID的功能验证
- 与ABP框架的功能管理系统无缝集成
配置使用
- 添加模块依赖
[DependsOn(typeof(AbpFeaturesClientModule))]
public class YouProjectModule : AbpModule
{
// other
}
- 使用示例
public class YourService
{
private readonly IFeatureChecker _featureChecker;
public YourService(IFeatureChecker featureChecker)
{
_featureChecker = featureChecker;
}
public async Task DoSomethingAsync()
{
// 检查客户端是否启用某个功能
if (await _featureChecker.IsEnabledAsync("YourFeature"))
{
// 业务逻辑
}
}
}
更多
- 本模块主要用于客户端功能验证,通常与LINGYUN.Abp.FeatureManagement.Client模块配合使用
- 客户端功能值提供者的名称为"C"