|
|
|
@ -10,8 +10,8 @@ using Swashbuckle.AspNetCore.Swagger; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.Account.Web; |
|
|
|
using Volo.Abp.AspNetCore.Authentication.JwtBearer; |
|
|
|
using Volo.Abp.AspNetCore.MultiTenancy; |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy; |
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic; |
|
|
|
using Volo.Abp.Auditing; |
|
|
|
using Volo.Abp.AuditLogging.EntityFrameworkCore; |
|
|
|
@ -26,6 +26,7 @@ using Volo.Abp.Identity.EntityFrameworkCore; |
|
|
|
using Volo.Abp.IdentityServer.EntityFrameworkCore; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.MultiTenancy; |
|
|
|
using Volo.Abp.PermissionManagement; |
|
|
|
using Volo.Abp.PermissionManagement.EntityFrameworkCore; |
|
|
|
using Volo.Abp.PermissionManagement.HttpApi; |
|
|
|
@ -40,7 +41,7 @@ namespace MyCompanyName.MyProjectName |
|
|
|
{ |
|
|
|
[DependsOn( |
|
|
|
typeof(AbpAccountWebIdentityServerModule), |
|
|
|
typeof(AbpAspNetCoreMultiTenancyModule), |
|
|
|
typeof(AbpAspNetCoreMvcUiMultiTenancyModule), |
|
|
|
typeof(AbpAspNetCoreMvcModule), |
|
|
|
typeof(AbpAspNetCoreMvcUiBasicThemeModule), |
|
|
|
typeof(AbpAuditLoggingEntityFrameworkCoreModule), |
|
|
|
@ -115,6 +116,11 @@ namespace MyCompanyName.MyProjectName |
|
|
|
options.KeyPrefix = "MyProjectName:"; |
|
|
|
}); |
|
|
|
|
|
|
|
Configure<AbpMultiTenancyOptions>(options => |
|
|
|
{ |
|
|
|
options.IsEnabled = MultiTenancyConsts.IsEnabled; |
|
|
|
}); |
|
|
|
|
|
|
|
context.Services.AddStackExchangeRedisCache(options => |
|
|
|
{ |
|
|
|
options.Configuration = configuration["Redis:Configuration"]; |
|
|
|
|