mirror of https://github.com/abpframework/abp.git
5 changed files with 16 additions and 19 deletions
@ -1,12 +1,18 @@ |
|||||
using Volo.Abp.GlobalFeatures; |
using Volo.Abp.GlobalFeatures; |
||||
|
using Volo.Abp.Threading; |
||||
|
|
||||
namespace Volo.CmsKit |
namespace Volo.CmsKit |
||||
{ |
{ |
||||
public static class FeatureConfigurer |
public static class FeatureConfigurer |
||||
{ |
{ |
||||
|
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); |
||||
|
|
||||
public static void Configure() |
public static void Configure() |
||||
{ |
{ |
||||
GlobalFeatureManager.Instance.Modules.CmsKit().EnableAll(); |
OneTimeRunner.Run(() => |
||||
|
{ |
||||
|
GlobalFeatureManager.Instance.Modules.CmsKit().EnableAll(); |
||||
|
}); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue