Invalidate current user client cache on feature changes.

pull/6655/head^2
Halil İbrahim Kalkan 5 years ago
parent 515a26c157
commit 590ae4d300

@ -3,7 +3,9 @@ using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations;
using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
using Volo.Abp.EventBus.Local;
using Volo.Abp.Features;
using Volo.Abp.Validation.StringValues;
@ -27,6 +29,8 @@ namespace Volo.Abp.FeatureManagement.Web.Pages.FeatureManagement
protected IFeatureAppService FeatureAppService { get; }
protected ILocalEventBus LocalEventBus { get; }
public FeatureManagementModal(IFeatureAppService featureAppService)
{
ObjectMapperContext = typeof(AbpFeatureManagementWebModule);
@ -56,6 +60,10 @@ namespace Volo.Abp.FeatureManagement.Web.Pages.FeatureManagement
await FeatureAppService.UpdateAsync(ProviderName, ProviderKey, features);
await LocalEventBus.PublishAsync(
new CurrentApplicationConfigurationCacheResetEventData()
);
return NoContent();
}

Loading…
Cancel
Save