using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.DependencyInjection; using Acme.BookStore.BookManagement.Localization; using Volo.Abp.AspNetCore.Mvc.Localization; using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; using Volo.Abp.AutoMapper; using Volo.Abp.Modularity; using Volo.Abp.UI.Navigation; using Volo.Abp.VirtualFileSystem; namespace Acme.BookStore.BookManagement.Web { [DependsOn( typeof(BookManagementHttpApiModule), typeof(AbpAspNetCoreMvcUiThemeSharedModule), typeof(AbpAutoMapperModule) )] public class BookManagementWebModule : AbpModule { public override void PreConfigureServices(ServiceConfigurationContext context) { context.Services.PreConfigure(options => { options.AddAssemblyResource(typeof(BookManagementResource), typeof(BookManagementWebModule).Assembly); }); } public override void ConfigureServices(ServiceConfigurationContext context) { Configure(options => { options.MenuContributors.Add(new BookManagementMenuContributor()); }); Configure(options => { options.FileSets.AddEmbedded("Acme.BookStore.BookManagement.Web"); }); Configure(options => { options.AddMaps(validate: true); }); Configure(options => { //Configure authorization. }); } } }