maliming
3 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
4 changed files with
5 additions and
5 deletions
-
framework/src/Volo.Abp.BackgroundJobs/Volo/Abp/BackgroundJobs/AbpBackgroundJobsModule.cs
-
framework/src/Volo.Abp.Data/Volo/Abp/Data/AbpDataMigrationEnvironmentExtensions.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/AbpFeatureManagementDomainModule.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/AbpPermissionManagementDomainModule.cs
|
|
|
@ -22,7 +22,7 @@ public class AbpBackgroundJobsModule : AbpModule |
|
|
|
{ |
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
if (context.Services.IsMigrationEnvironment()) |
|
|
|
if (context.Services.IsDataMigrationEnvironment()) |
|
|
|
{ |
|
|
|
Configure<AbpBackgroundJobOptions>(options => |
|
|
|
{ |
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ public static class AbpDataMigrationEnvironmentExtensions |
|
|
|
return services.GetObjectOrNull<IObjectAccessor<AbpDataMigrationEnvironment>>()?.Value; |
|
|
|
} |
|
|
|
|
|
|
|
public static bool IsMigrationEnvironment(this IServiceCollection services) |
|
|
|
public static bool IsDataMigrationEnvironment(this IServiceCollection services) |
|
|
|
{ |
|
|
|
return services.GetDataMigrationEnvironment() != null; |
|
|
|
} |
|
|
|
@ -31,7 +31,7 @@ public static class AbpDataMigrationEnvironmentExtensions |
|
|
|
return serviceProvider.GetService<IObjectAccessor<AbpDataMigrationEnvironment>>()?.Value; |
|
|
|
} |
|
|
|
|
|
|
|
public static bool IsMigrationEnvironment(this IServiceProvider serviceProvider) |
|
|
|
public static bool IsDataMigrationEnvironment(this IServiceProvider serviceProvider) |
|
|
|
{ |
|
|
|
return serviceProvider.GetDataMigrationEnvironment() != null; |
|
|
|
} |
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ public class AbpFeatureManagementDomainModule : AbpModule |
|
|
|
options.MapCodeNamespace("AbpFeatureManagement", typeof(AbpFeatureManagementResource)); |
|
|
|
}); |
|
|
|
|
|
|
|
if (context.Services.IsMigrationEnvironment()) |
|
|
|
if (context.Services.IsDataMigrationEnvironment()) |
|
|
|
{ |
|
|
|
Configure<FeatureManagementOptions>(options => |
|
|
|
{ |
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ public class AbpPermissionManagementDomainModule : AbpModule |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
if (context.Services.IsMigrationEnvironment()) |
|
|
|
if (context.Services.IsDataMigrationEnvironment()) |
|
|
|
{ |
|
|
|
Configure<PermissionManagementOptions>(options => |
|
|
|
{ |
|
|
|
|