|
|
|
|
@ -14,18 +14,15 @@ public class FeatureAppService : FeatureManagementAppServiceBase, IFeatureAppSer
|
|
|
|
|
{
|
|
|
|
|
protected FeatureManagementOptions Options { get; }
|
|
|
|
|
protected IFeatureManager FeatureManager { get; }
|
|
|
|
|
protected IFeatureValueRepository FeatureValueRepository { get; }
|
|
|
|
|
protected IFeatureDefinitionManager FeatureDefinitionManager { get; }
|
|
|
|
|
|
|
|
|
|
public FeatureAppService(IFeatureManager featureManager,
|
|
|
|
|
IFeatureDefinitionManager featureDefinitionManager,
|
|
|
|
|
IOptions<FeatureManagementOptions> options,
|
|
|
|
|
IFeatureValueRepository featureValueRepository)
|
|
|
|
|
IOptions<FeatureManagementOptions> options)
|
|
|
|
|
{
|
|
|
|
|
FeatureManager = featureManager;
|
|
|
|
|
FeatureDefinitionManager = featureDefinitionManager;
|
|
|
|
|
Options = options.Value;
|
|
|
|
|
FeatureValueRepository = featureValueRepository;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual async Task<GetFeatureListResultDto> GetAsync([NotNull] string providerName, string providerKey)
|
|
|
|
|
@ -140,6 +137,6 @@ public class FeatureAppService : FeatureManagementAppServiceBase, IFeatureAppSer
|
|
|
|
|
|
|
|
|
|
public virtual async Task DeleteAsync([NotNull] string providerName, string providerKey)
|
|
|
|
|
{
|
|
|
|
|
await FeatureValueRepository.DeleteAsync(providerName, providerKey);
|
|
|
|
|
await FeatureManager.DeleteAsync(providerName, providerKey);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|