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.1 KiB
1.1 KiB
LINGYUN.Abp.Features.Client
Client feature validation component
Features
- Provides ClientFeatureValueProvider
- Supports feature validation based on client ID
- Seamlessly integrates with ABP framework's feature management system
Configuration and Usage
- Add module dependency
[DependsOn(typeof(AbpFeaturesClientModule))]
public class YouProjectModule : AbpModule
{
// other
}
- Usage example
public class YourService
{
private readonly IFeatureChecker _featureChecker;
public YourService(IFeatureChecker featureChecker)
{
_featureChecker = featureChecker;
}
public async Task DoSomethingAsync()
{
// Check if a feature is enabled for the client
if (await _featureChecker.IsEnabledAsync("YourFeature"))
{
// Business logic
}
}
}
More
- This module is mainly used for client feature validation, typically used in conjunction with the LINGYUN.Abp.FeatureManagement.Client module
- The name of the client feature value provider is "C"