|
|
@ -3,7 +3,6 @@ using System.Collections.Generic; |
|
|
using System.Security.Claims; |
|
|
using System.Security.Claims; |
|
|
using Localization.Resources.AbpUi; |
|
|
using Localization.Resources.AbpUi; |
|
|
using Microsoft.AspNetCore.Builder; |
|
|
using Microsoft.AspNetCore.Builder; |
|
|
using Microsoft.AspNetCore.Mvc.ApplicationParts; |
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.Razor; |
|
|
using Microsoft.AspNetCore.Mvc.Razor; |
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
@ -38,12 +37,6 @@ public class AbpAspNetCoreMvcTestModule : AbpModule |
|
|
|
|
|
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
|
|
{ |
|
|
|
|
|
mvcBuilder.PartManager.ApplicationParts.Add(new AssemblyPart(typeof(AbpAspNetCoreMvcTestModule).Assembly)); |
|
|
|
|
|
mvcBuilder.PartManager.ApplicationParts.Add(new CompiledRazorAssemblyPart(typeof(AbpAspNetCoreMvcTestModule).Assembly)); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options => |
|
|
context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.AddAssemblyResource( |
|
|
options.AddAssemblyResource( |
|
|
|