Add MyProjectNameGlobalFeatureConfigurator.

pull/5133/head
Halil İbrahim Kalkan 5 years ago
parent 27b08adaa8
commit af1181d37b

@ -29,6 +29,7 @@ namespace MyCompanyName.MyProjectName
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
MyProjectNameGlobalFeatureConfigurator.Configure();
MyProjectNameModuleExtensionConfigurator.Configure();
}

@ -0,0 +1,23 @@
using Volo.Abp.Threading;
namespace MyCompanyName.MyProjectName
{
public static class MyProjectNameGlobalFeatureConfigurator
{
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
public static void Configure()
{
OneTimeRunner.Run(() =>
{
/* You can configure (enable/disable) global features of the used modules here.
*
* YOU CAN SAFELY DELETE THIS CLASS AND REMOVE ITS USAGES IF YOU DON'T NEED TO IT!
*
* Please refer to the documentation to lear more about the Global Features System:
* https://docs.abp.io/en/commercial/latest/Global-Features
*/
});
}
}
}

@ -30,6 +30,8 @@ namespace MyCompanyName.MyProjectName
* Notice: It is not suggested to change property lengths
* unless you really need it. Go with the standard values wherever possible.
*
* If you are using EF Core, you will need to run the add-migration command after your changes.
*/
}

@ -11,6 +11,7 @@ namespace MyCompanyName.MyProjectName.EntityFrameworkCore
public static void Configure()
{
MyProjectNameGlobalFeatureConfigurator.Configure();
MyProjectNameModuleExtensionConfigurator.Configure();
OneTimeRunner.Run(() =>

Loading…
Cancel
Save