mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.AspNetCore.Components.WebAssembly.Theming.Routing;
|
|
using Volo.Abp.AutoMapper;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.PermissionManagement.Blazor;
|
|
using Volo.Abp.UI.Navigation;
|
|
|
|
namespace Volo.Abp.Identity.Blazor
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpIdentityHttpApiClientModule),
|
|
typeof(AbpAutoMapperModule),
|
|
typeof(AbpPermissionManagementBlazorModule)
|
|
)]
|
|
public class AbpIdentityBlazorModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddAutoMapperObjectMapper<AbpIdentityBlazorModule>();
|
|
|
|
Configure<AbpAutoMapperOptions>(options =>
|
|
{
|
|
options.AddProfile<AbpIdentityBlazorAutoMapperProfile>(validate: true);
|
|
});
|
|
|
|
Configure<AbpNavigationOptions>(options =>
|
|
{
|
|
options.MenuContributors.Add(new AbpIdentityWebMainMenuContributor());
|
|
});
|
|
|
|
Configure<AbpRouterOptions>(options =>
|
|
{
|
|
options.AdditionalAssemblies.Add(typeof(AbpIdentityBlazorModule).Assembly);
|
|
});
|
|
|
|
context.Services.AddSingleton(typeof(AbpIdentityBlazorMessageLocalizerHelper<>));
|
|
}
|
|
}
|
|
}
|
|
|