|
|
|
@ -25,6 +25,7 @@ using Volo.Abp.AspNetCore.Serilog;
|
|
|
|
|
using Volo.Abp.Autofac;
|
|
|
|
|
using Volo.Abp.AutoMapper;
|
|
|
|
|
using Volo.Abp.Caching;
|
|
|
|
|
using Volo.Abp.Caching.StackExchangeRedis;
|
|
|
|
|
using Volo.Abp.FeatureManagement;
|
|
|
|
|
using Volo.Abp.Http.Client.IdentityModel.Web;
|
|
|
|
|
using Volo.Abp.Identity;
|
|
|
|
@ -50,6 +51,7 @@ namespace MyCompanyName.MyProjectName
|
|
|
|
|
typeof(AbpAspNetCoreMvcClientModule),
|
|
|
|
|
typeof(AbpAspNetCoreMvcUiBasicThemeModule),
|
|
|
|
|
typeof(AbpAutofacModule),
|
|
|
|
|
typeof(AbpCachingStackExchangeRedisModule),
|
|
|
|
|
typeof(AbpHttpClientIdentityModelWebModule),
|
|
|
|
|
typeof(AbpIdentityWebModule),
|
|
|
|
|
typeof(AbpIdentityHttpApiClientModule),
|
|
|
|
@ -202,11 +204,6 @@ namespace MyCompanyName.MyProjectName
|
|
|
|
|
IConfiguration configuration,
|
|
|
|
|
IWebHostEnvironment hostingEnvironment)
|
|
|
|
|
{
|
|
|
|
|
context.Services.AddStackExchangeRedisCache(options =>
|
|
|
|
|
{
|
|
|
|
|
options.Configuration = configuration["Redis:Configuration"];
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (!hostingEnvironment.IsDevelopment())
|
|
|
|
|
{
|
|
|
|
|
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
|
|
|
|
|