|
|
@ -3,12 +3,21 @@ using Volo.Abp.Identity.Localization; |
|
|
using Volo.Abp.Localization; |
|
|
using Volo.Abp.Localization; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
using Localization.Resources.AbpUi; |
|
|
using Localization.Resources.AbpUi; |
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.Identity |
|
|
namespace Volo.Abp.Identity |
|
|
{ |
|
|
{ |
|
|
[DependsOn(typeof(AbpIdentityApplicationContractsModule), typeof(AbpAspNetCoreMvcModule))] |
|
|
[DependsOn(typeof(AbpIdentityApplicationContractsModule), typeof(AbpAspNetCoreMvcModule))] |
|
|
public class AbpIdentityHttpApiModule : AbpModule |
|
|
public class AbpIdentityHttpApiModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
|
|
{ |
|
|
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
|
|
{ |
|
|
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpIdentityHttpApiModule).Assembly); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|