コード例 #1
0
 public virtual Task UpdateAsync(string providerName, string providerKey, UpdateFeaturesDto input)
 {
     return(FeatureAppService.UpdateAsync(providerName, providerKey, input));
 }
コード例 #2
0
        public virtual async Task UpdateAsync([NotNull] string providerName, [NotNull] string providerKey, UpdateFeaturesDto input)
        {
            await CheckProviderPolicy(providerName);

            foreach (var feature in input.Features)
            {
                await FeatureManager.SetAsync(feature.Name, feature.Value, providerName, providerKey);
            }
        }