这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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

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

  1. Add module dependency
[DependsOn(typeof(AbpFeaturesClientModule))]
public class YouProjectModule : AbpModule
{
    // other
}
  1. 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"

简体中文 | English